Mercurial > mplayer.hg
changeset 16594:7b30ec73e83e
debugging/testing helpers: allow forcing a certain width/height for textures
author | reimar |
---|---|
date | Sun, 25 Sep 2005 16:33:03 +0000 |
parents | 1c13fb2ba5a9 |
children | b3a9fb41f475 |
files | libvo/vo_gl2.c |
diffstat | 1 files changed, 13 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/vo_gl2.c Sun Sep 25 16:31:58 2005 +0000 +++ b/libvo/vo_gl2.c Sun Sep 25 16:33:03 2005 +0000 @@ -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)