diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-09-25 16:33:03 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-09-25 16:33:03 +0000 |
commit | 464df17b27c71c4ab439c54ff985e7a8fa6f91f9 (patch) | |
tree | 7bfbf62f64c8e016d28e896d53cdafbcfa32f2fa | |
parent | e74494dd4de208ebb18f02bd2ed2eaf177a081d6 (diff) |
debugging/testing helpers: allow forcing a certain width/height for textures
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16595 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libvo/vo_gl2.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libvo/vo_gl2.c b/libvo/vo_gl2.c index c92d2459d1..483d98f098 100644 --- a/libvo/vo_gl2.c +++ b/libvo/vo_gl2.c @@ -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 @@ static int initTextures() } } 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) |