From 86cef6a5dd0cb2c1b44503fa20c405be9cc0dfcf Mon Sep 17 00:00:00 2001 From: gered Date: Sun, 18 Aug 2013 12:59:55 -0400 Subject: [PATCH] don't call OpenGL methods directly from core game code unless needed --- Game.Core/GameApp.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Game.Core/GameApp.cs b/Game.Core/GameApp.cs index 6179239..60c1072 100644 --- a/Game.Core/GameApp.cs +++ b/Game.Core/GameApp.cs @@ -45,8 +45,7 @@ namespace Game public void OnRender(float delta) { - Platform.GL.glClear(GL20.GL_DEPTH_BUFFER_BIT | GL20.GL_COLOR_BUFFER_BIT); - Platform.GL.glClearColor(0.25f, 0.5f, 1.0f, 1.0f); + Platform.GraphicsDevice.Clear(0.25f, 0.5f, 1.0f, 1.0f); } public void OnResize(ScreenOrientation orientation, Rect size)