minor fixes

This commit is contained in:
David Rose 2007-11-27 01:11:46 +00:00
parent 3ec478cf04
commit 8d56e2e234

View File

@ -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)