[vlc-devel] [PATCH 19/24] opengl: rename "texture" to "textures"
Romain Vimont
rom1v at videolabs.io
Mon Jan 27 21:20:09 CET 2020
The field is an array of textures.
---
modules/video_output/opengl/renderer.h | 2 +-
modules/video_output/opengl/vout_helper.c | 10 +++++-----
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/modules/video_output/opengl/renderer.h b/modules/video_output/opengl/renderer.h
index 930360c437..80de46c031 100644
--- a/modules/video_output/opengl/renderer.h
+++ b/modules/video_output/opengl/renderer.h
@@ -96,7 +96,7 @@ struct vlc_gl_renderer
GLsizei tex_width[PICTURE_PLANE_MAX];
GLsizei tex_height[PICTURE_PLANE_MAX];
- GLuint texture[PICTURE_PLANE_MAX];
+ GLuint textures[PICTURE_PLANE_MAX];
unsigned nb_indices;
GLuint vertex_buffer_object;
diff --git a/modules/video_output/opengl/vout_helper.c b/modules/video_output/opengl/vout_helper.c
index 652e5e9f23..a82f743571 100644
--- a/modules/video_output/opengl/vout_helper.c
+++ b/modules/video_output/opengl/vout_helper.c
@@ -689,7 +689,7 @@ vout_display_opengl_t *vout_display_opengl_New(video_format_t *fmt,
{
ret = vlc_gl_interop_GenTextures(interop, renderer->tex_width,
renderer->tex_height,
- renderer->texture);
+ renderer->textures);
if (ret != VLC_SUCCESS)
{
vout_display_opengl_Delete(vgl);
@@ -747,7 +747,7 @@ void vout_display_opengl_Delete(vout_display_opengl_t *vgl)
vgl->vt.DeleteBuffers(main_tex_count, renderer->texture_buffer_object);
if (main_del_texs)
- vgl->vt.DeleteTextures(main_tex_count, renderer->texture);
+ vgl->vt.DeleteTextures(main_tex_count, renderer->textures);
GL_ASSERT_NOERROR();
@@ -840,7 +840,7 @@ int vout_display_opengl_Prepare(vout_display_opengl_t *vgl,
const struct vlc_gl_interop *interop = renderer->interop;
/* Update the texture */
- int ret = interop->ops->update_textures(interop, renderer->texture,
+ int ret = interop->ops->update_textures(interop, renderer->textures,
renderer->tex_width,
renderer->tex_height, picture,
NULL);
@@ -1194,9 +1194,9 @@ static void DrawWithShaders(vout_display_opengl_t *vgl)
renderer->tex_height, 1.0f);
for (unsigned j = 0; j < interop->tex_count; j++) {
- assert(renderer->texture[j] != 0);
+ assert(renderer->textures[j] != 0);
vgl->vt.ActiveTexture(GL_TEXTURE0+j);
- vgl->vt.BindTexture(interop->tex_target, renderer->texture[j]);
+ vgl->vt.BindTexture(interop->tex_target, renderer->textures[j]);
vgl->vt.BindBuffer(GL_ARRAY_BUFFER, renderer->texture_buffer_object[j]);
--
2.25.0
More information about the vlc-devel
mailing list