diff libvo/gl_common.c @ 16303:a87c6cf3fe52

Fix texture format variable types. Internal format is GLint, others are GLenum
author reimar
date Thu, 25 Aug 2005 12:45:57 +0000
parents d5374d07492a
children b5ca0e5760d0
line wrap: on
line diff
--- a/libvo/gl_common.c	Wed Aug 24 12:33:32 2005 +0000
+++ b/libvo/gl_common.c	Thu Aug 25 12:45:57 2005 +0000
@@ -110,13 +110,14 @@
  * \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;