[MPlayer-cvslog] CVS: main/libvo vo_gl2.c,1.80,1.81
Reimar Döffinger CVS
syncmail at mplayerhq.hu
Sun Sep 25 18:33:05 CEST 2005
CVS change done by Reimar Döffinger CVS
Update of /cvsroot/mplayer/main/libvo
In directory mail:/var2/tmp/cvs-serv1924
Modified Files:
vo_gl2.c
Log Message:
debugging/testing helpers: allow forcing a certain width/height for textures
Index: vo_gl2.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_gl2.c,v
retrieving revision 1.80
retrieving revision 1.81
diff -u -r1.80 -r1.81
--- vo_gl2.c 25 Sep 2005 16:18:16 -0000 1.80
+++ vo_gl2.c 25 Sep 2005 16:33:03 -0000 1.81
@@ -30,6 +30,13 @@
#define TEXTUREFORMAT_ALWAYS GL_RGBA8
#endif
+//! force texture height, useful for debugging
+#define TEXTURE_HEIGHT 128
+#undef TEXTURE_HEIGHT
+//! force texture width, useful for debugging
+#define TEXTURE_WIDTH 128
+#undef TEXTURE_WIDTH
+
static vo_info_t info =
{
"X11 (OpenGL) - multiple textures version",
@@ -197,6 +204,12 @@
}
}
while (format != gl_internal_format && texture_width > 1 && texture_height > 1);
+#ifdef TEXTURE_WIDTH
+ texture_width = TEXTURE_WIDTH;
+#endif
+#ifdef TEXTURE_HEIGHT
+ texture_height = TEXTURE_HEIGHT;
+#endif
texnumx = image_width / texture_width;
if ((image_width % texture_width) > 0)
More information about the MPlayer-cvslog
mailing list