video/out: make ra_fns const

This commit is contained in:
nanahi authored and Kacper Michajłow committed 2025-08-05 03:10:33 +02:00
1 parent ce8032a8ca
commit 1d71523407
5 files changed
+7 -7

No files matched your search

+1 -1
View File
@@ -2256,7 +2256,7 @@ static void destroy(struct ra *ra)
talloc_free(ra);
}
static struct ra_fns ra_fns_d3d11 = {
static const struct ra_fns ra_fns_d3d11 = {
.destroy = destroy,
.tex_create = tex_create,
.tex_destroy = tex_destroy,
+1 -1
View File
@@ -5,7 +5,7 @@
// Handle for a rendering API backend.
struct ra {
struct ra_fns *fns;
const struct ra_fns *fns;
void *priv;
int glsl_version; // GLSL version (e.g. 300 => 3.0)
+2 -2
View File
@@ -4,7 +4,7 @@
#include "utils.h"
#include "ra_gl.h"
static struct ra_fns ra_fns_gl;
static const struct ra_fns ra_fns_gl;
// For ra.priv
struct ra_gl {
@@ -1183,7 +1183,7 @@ static void gl_debug_marker(struct ra *ra, const char *msg)
gl_check_error(p->gl, ra->log, msg);
}
static struct ra_fns ra_fns_gl = {
static const struct ra_fns ra_fns_gl = {
.destroy = gl_destroy,
.tex_create = gl_tex_create,
.tex_destroy = gl_tex_destroy,
+2 -2
View File
@@ -15,7 +15,7 @@ static inline pl_gpu get_gpu(const struct ra *ra)
return p->gpu;
}
static struct ra_fns ra_fns_pl;
static const struct ra_fns ra_fns_pl;
pl_gpu ra_pl_get(const struct ra *ra)
{
@@ -651,7 +651,7 @@ static pl_timer get_active_timer(const struct ra *ra)
return t->timers[t->idx_timers++];
}
static struct ra_fns ra_fns_pl = {
static const struct ra_fns ra_fns_pl = {
.destroy = destroy_ra_pl,
.tex_create = tex_create_pl,
.tex_destroy = tex_destroy_pl,
+1 -1
View File
@@ -35,7 +35,7 @@ bool ra_compatible_format(struct ra *ra, uint32_t drm_format, uint64_t modifier)
return vo_wayland_valid_format(wl, drm_format, modifier);
}
static struct ra_fns ra_fns_wldmabuf = {
static const struct ra_fns ra_fns_wldmabuf = {
.destroy = destroy,
};