From 2034bd25bb810bf3c605e4f160a5b6f50ef330ca Mon Sep 17 00:00:00 2001 From: David Rose Date: Sat, 25 Mar 2006 21:17:15 +0000 Subject: [PATCH] remove troublesome call --- panda/src/glstuff/glGraphicsStateGuardian_src.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/panda/src/glstuff/glGraphicsStateGuardian_src.cxx b/panda/src/glstuff/glGraphicsStateGuardian_src.cxx index aac1364a13..70db242397 100644 --- a/panda/src/glstuff/glGraphicsStateGuardian_src.cxx +++ b/panda/src/glstuff/glGraphicsStateGuardian_src.cxx @@ -6754,8 +6754,10 @@ get_texture_memory_size(Texture *tex) { GLP(GetTexLevelParameteriv)(page_target, 0, GL_TEXTURE_INTENSITY_SIZE, &intensity_size); if (_supports_depth_texture) { - GLP(GetTexLevelParameteriv)(page_target, 0, - GL_TEXTURE_DEPTH_SIZE, &depth_size); + // Actually, this seems to cause problems on some Mesa versions, + // even though they advertise GL_ARB_depth_texture. Who needs it. + // GLP(GetTexLevelParameteriv)(page_target, 0, + // GL_TEXTURE_DEPTH_SIZE, &depth_size); } GLint width = 1, height = 1, depth = 1;