mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 03:08:05 +02:00
progs/tests: additional debug code
This commit is contained in:
parent
4ca9ba2544
commit
bb659f6e53
1 changed files with 10 additions and 0 deletions
|
|
@ -191,6 +191,16 @@ MakeTexture(const struct pixel_format *format, GLenum intFormat, GLboolean swap)
|
|||
format->format, format->type, texBuffer);
|
||||
}
|
||||
|
||||
if (0) {
|
||||
GLint r, g, b, a;
|
||||
glGetTexLevelParameteriv(GL_TEXTURE_2D, 0, GL_TEXTURE_RED_SIZE, &r);
|
||||
glGetTexLevelParameteriv(GL_TEXTURE_2D, 0, GL_TEXTURE_GREEN_SIZE, &g);
|
||||
glGetTexLevelParameteriv(GL_TEXTURE_2D, 0, GL_TEXTURE_BLUE_SIZE, &b);
|
||||
glGetTexLevelParameteriv(GL_TEXTURE_2D, 0, GL_TEXTURE_ALPHA_SIZE, &a);
|
||||
printf("sizes: %d %d %d %d\n", r, g, b, a);
|
||||
glGetError();
|
||||
}
|
||||
|
||||
if (glGetError()) {
|
||||
printf("GL Error for %s\n", format->name);
|
||||
memset(texBuffer, 255, 1000);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue