mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
minor fixes
This commit is contained in:
parent
3ec478cf04
commit
8d56e2e234
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user