From ec18c967ddb42c4a681a0272fd9a88236bbfc274 Mon Sep 17 00:00:00 2001 From: rdb Date: Mon, 16 Jan 2012 09:19:28 +0000 Subject: [PATCH] unbreak GLES --- panda/src/glstuff/glGraphicsStateGuardian_src.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/panda/src/glstuff/glGraphicsStateGuardian_src.cxx b/panda/src/glstuff/glGraphicsStateGuardian_src.cxx index 7f8df98012..87cb7852ed 100644 --- a/panda/src/glstuff/glGraphicsStateGuardian_src.cxx +++ b/panda/src/glstuff/glGraphicsStateGuardian_src.cxx @@ -9485,7 +9485,9 @@ do_extract_texture_data(CLP(TextureContext) *gtc) { format = Texture::F_color_index; break; #endif +#if GL_DEPTH_COMPONENT != GL_DEPTH_COMPONENT24 case GL_DEPTH_COMPONENT: +#endif case GL_DEPTH_COMPONENT16: case GL_DEPTH_COMPONENT24: case GL_DEPTH_COMPONENT32: