[vlc-devel] [PATCH 3/5] Opengl: query MAX_TEXTURE_IMAGE_UNITS for texture units
Ilkka Ollakka
ileoo at videolan.org
Mon Apr 2 14:13:09 CEST 2012
---
modules/video_output/opengl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/video_output/opengl.c b/modules/video_output/opengl.c
index 1295e5d..57d9ea5 100644
--- a/modules/video_output/opengl.c
+++ b/modules/video_output/opengl.c
@@ -194,7 +194,7 @@ vout_display_opengl_t *vout_display_opengl_New(video_format_t *fmt,
bool supports_fp = true;
bool supports_multitexture = true;
GLint max_texture_units = 0;
- glGetIntegerv(GL_MAX_TEXTURE_UNITS, &max_texture_units);
+ glGetIntegerv(GL_MAX_TEXTURE_IMAGE_UNITS, &max_texture_units);
/* Initialize with default chroma */
vgl->fmt = *fmt;
--
1.7.9.2
More information about the vlc-devel
mailing list