summaryrefslogtreecommitdiffstats
path: root/libvo/gl_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'libvo/gl_common.c')
-rw-r--r--libvo/gl_common.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libvo/gl_common.c b/libvo/gl_common.c
index 1e22593dff..fcaac5f2a1 100644
--- a/libvo/gl_common.c
+++ b/libvo/gl_common.c
@@ -110,13 +110,14 @@ const char *glValName(GLint value)
* \param gl_type [OUT] OpenGL type for this image format.
* \return 1 if format is supported by OpenGL, 0 if not.
*/
-int glFindFormat(uint32_t fmt, uint32_t *bpp, GLenum *gl_texfmt,
+int glFindFormat(uint32_t fmt, uint32_t *bpp, GLint *gl_texfmt,
GLenum *gl_format, GLenum *gl_type)
{
int dummy1;
GLenum dummy2;
+ GLint dummy3;
if (bpp == NULL) bpp = &dummy1;
- if (gl_texfmt == NULL) gl_texfmt = &dummy2;
+ if (gl_texfmt == NULL) gl_texfmt = &dummy3;
if (gl_format == NULL) gl_format = &dummy2;
if (gl_type == NULL) gl_type = &dummy2;