mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
minor fixes
This commit is contained in:
parent
3ec478cf04
commit
8d56e2e234
@ -438,6 +438,7 @@ reset() {
|
|||||||
_supports_depth_texture =
|
_supports_depth_texture =
|
||||||
has_extension("GL_ARB_depth_texture") || is_at_least_version(1, 4);
|
has_extension("GL_ARB_depth_texture") || is_at_least_version(1, 4);
|
||||||
|
|
||||||
|
_supports_depth_stencil = false;
|
||||||
if (_supports_depth_texture) {
|
if (_supports_depth_texture) {
|
||||||
_supports_depth_stencil =
|
_supports_depth_stencil =
|
||||||
has_extension("GL_EXT_packed_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)) {
|
switch (get_component_type(component_type)) {
|
||||||
case GL_UNSIGNED_BYTE:
|
case GL_UNSIGNED_BYTE:
|
||||||
GLCAT.spam(false) << "GL_UNSIGNED_BYTE, ";
|
GLCAT.spam(false) << "GL_UNSIGNED_BYTE";
|
||||||
break;
|
break;
|
||||||
case GL_UNSIGNED_SHORT:
|
case GL_UNSIGNED_SHORT:
|
||||||
GLCAT.spam(false) << "GL_UNSIGNED_SHORT, ";
|
GLCAT.spam(false) << "GL_UNSIGNED_SHORT";
|
||||||
break;
|
break;
|
||||||
case GL_FLOAT:
|
case GL_FLOAT:
|
||||||
GLCAT.spam(false) << "GL_FLOAT, ";
|
GLCAT.spam(false) << "GL_FLOAT";
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
GLCAT.spam(false) << "unknown, ";
|
GLCAT.spam(false) << "unknown";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
GLCAT.spam(false)
|
GLCAT.spam(false)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user