hack non-const change

This commit is contained in:
David Rose 2007-09-24 22:04:11 +00:00
parent b79eb8dbeb
commit d8f195bc09
2 changed files with 8 additions and 4 deletions

View File

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

View File

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