draw gui later. this fixes the hotbar disappearing while rendering to texture.
authorJürgen Doser <jurgen.doser@gmail.com>
Thu, 6 Dec 2012 16:33:11 +0000 (17:33 +0100)
committerPerttu Ahola <celeron55@gmail.com>
Thu, 6 Dec 2012 18:43:17 +0000 (20:43 +0200)
src/game.cpp

index 5c3805c3b64e15f35bf39bc537c012c64b3d9383..194658f1f7fb257fe14fe1fd9e1d800648ee0fc7 100644 (file)
@@ -2958,11 +2958,6 @@ void the_game(
                //timer10.stop();
                //TimeTaker //timer11("//timer11");
 
-               /*
-                       Draw gui
-               */
-               // 0-1ms
-               guienv->drawAll();
 
                /*
                        Draw hotbar
@@ -2988,6 +2983,12 @@ void the_game(
                                        NULL);
                }
 
+               /*
+                       Draw gui
+               */
+               // 0-1ms
+               guienv->drawAll();
+
                /*
                        End scene
                */