diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-02-23 06:45:12 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-02-23 06:45:12 +0400 |
commit | f924750463b40aa10caf5070543937d326f5605f (patch) | |
tree | 4a6eb04fa950fd6e359333ef3f3c2a955cae1f77 /source/gameengine/Rasterizer | |
parent | 6c0b8ec0649b28aa21f86aaa45afcdc5ad9c8d74 (diff) |
fix for error using uninitialized draw mode with 'm_failsafe_storage' in the BGE.
Diffstat (limited to 'source/gameengine/Rasterizer')
-rw-r--r-- | source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_OpenGLRasterizer.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_OpenGLRasterizer.cpp b/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_OpenGLRasterizer.cpp index 8c46618ee36..0186e99f78a 100644 --- a/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_OpenGLRasterizer.cpp +++ b/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_OpenGLRasterizer.cpp @@ -364,6 +364,9 @@ void RAS_OpenGLRasterizer::SetDrawingMode(int drawingmode) glDisable(GL_CULL_FACE); m_storage->SetDrawingMode(drawingmode); + if (m_failsafe_storage && m_failsafe_storage != m_storage) { + m_failsafe_storage->SetDrawingMode(drawingmode); + } } int RAS_OpenGLRasterizer::GetDrawingMode() |