mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-17 12:12:10 -04:00
hack non-const change
This commit is contained in:
parent
b79eb8dbeb
commit
d8f195bc09
@ -546,7 +546,8 @@ do_clear(const RenderBuffer &buffer) {
|
||||
if (FAILED(hr2)) {
|
||||
dxgsg8_cat.error()
|
||||
<< "Unable to clear depth buffer; removing.\n";
|
||||
_current_properties->set_depth_bits(0);
|
||||
// This is really hacky code.
|
||||
((FrameBufferProperties *)_current_properties)->set_depth_bits(0);
|
||||
}
|
||||
}
|
||||
if (buffer_type & RenderBuffer::T_stencil) {
|
||||
@ -556,7 +557,8 @@ do_clear(const RenderBuffer &buffer) {
|
||||
if (FAILED(hr2)) {
|
||||
dxgsg8_cat.error()
|
||||
<< "Unable to clear stencil buffer; removing.\n";
|
||||
_current_properties->set_stencil_bits(0);
|
||||
// This is really hacky code.
|
||||
((FrameBufferProperties *)_current_properties)->set_stencil_bits(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -838,7 +838,8 @@ do_clear(const RenderBuffer &buffer) {
|
||||
if (FAILED(hr2)) {
|
||||
dxgsg9_cat.error()
|
||||
<< "Unable to clear depth buffer; removing.\n";
|
||||
_current_properties->set_depth_bits(0);
|
||||
// This is really hacky code.
|
||||
((FrameBufferProperties *)_current_properties)->set_depth_bits(0);
|
||||
}
|
||||
}
|
||||
if (buffer_type & RenderBuffer::T_stencil) {
|
||||
@ -848,7 +849,8 @@ do_clear(const RenderBuffer &buffer) {
|
||||
if (FAILED(hr2)) {
|
||||
dxgsg9_cat.error()
|
||||
<< "Unable to clear stencil buffer; removing.\n";
|
||||
_current_properties->set_stencil_bits(0);
|
||||
// This is really hacky code.
|
||||
((FrameBufferProperties *)_current_properties)->set_stencil_bits(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user