Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitchell Stokes <mogurijin@gmail.com>2013-07-09 05:42:13 +0400
committerMitchell Stokes <mogurijin@gmail.com>2013-07-09 05:42:13 +0400
commitf6502a67f203dbd57446f5b10cbdd82a4610e84c (patch)
treecea27bda3b0458aff5e07db3fbeb6ca43d54f082 /source/gameengine
parentb73793f6369c142f1316791712b59aece8c169e7 (diff)
BGE cleanup: Getting rid of an unused variable warning in GPG_Canvas::Init().
Diffstat (limited to 'source/gameengine')
-rw-r--r--source/gameengine/GamePlayer/ghost/GPG_Canvas.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/gameengine/GamePlayer/ghost/GPG_Canvas.cpp b/source/gameengine/GamePlayer/ghost/GPG_Canvas.cpp
index c438dcdd4a6..a1d00dad0e1 100644
--- a/source/gameengine/GamePlayer/ghost/GPG_Canvas.cpp
+++ b/source/gameengine/GamePlayer/ghost/GPG_Canvas.cpp
@@ -55,9 +55,8 @@ void GPG_Canvas::Init()
{
if (m_window)
{
- GHOST_TSuccess success;
- success = m_window->setDrawingContextType(GHOST_kDrawingContextTypeOpenGL);
- assert(success == GHOST_kSuccess);
+ m_window->setDrawingContextType(GHOST_kDrawingContextTypeOpenGL);
+ assert(m_window->getDrawingContextType() == GHOST_kDrawingContextTypeOpenGL);
}
}