From 8d56e2e234d3d555fb313d2a229302663f366950 Mon Sep 17 00:00:00 2001 From: David Rose Date: Tue, 27 Nov 2007 01:11:46 +0000 Subject: [PATCH] minor fixes --- panda/src/glstuff/glGraphicsStateGuardian_src.cxx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/panda/src/glstuff/glGraphicsStateGuardian_src.cxx b/panda/src/glstuff/glGraphicsStateGuardian_src.cxx index 2e1a7b2a85..ba2504c4bf 100644 --- a/panda/src/glstuff/glGraphicsStateGuardian_src.cxx +++ b/panda/src/glstuff/glGraphicsStateGuardian_src.cxx @@ -438,6 +438,7 @@ reset() { _supports_depth_texture = has_extension("GL_ARB_depth_texture") || is_at_least_version(1, 4); + _supports_depth_stencil = false; if (_supports_depth_texture) { _supports_depth_stencil = has_extension("GL_EXT_packed_depth_stencil"); @@ -3397,16 +3398,16 @@ framebuffer_copy_to_ram(Texture *tex, int z, const DisplayRegion *dr, } switch (get_component_type(component_type)) { case GL_UNSIGNED_BYTE: - GLCAT.spam(false) << "GL_UNSIGNED_BYTE, "; + GLCAT.spam(false) << "GL_UNSIGNED_BYTE"; break; case GL_UNSIGNED_SHORT: - GLCAT.spam(false) << "GL_UNSIGNED_SHORT, "; + GLCAT.spam(false) << "GL_UNSIGNED_SHORT"; break; case GL_FLOAT: - GLCAT.spam(false) << "GL_FLOAT, "; + GLCAT.spam(false) << "GL_FLOAT"; break; default: - GLCAT.spam(false) << "unknown, "; + GLCAT.spam(false) << "unknown"; break; } GLCAT.spam(false)