don't call OpenGL methods directly from core game code unless needed
This commit is contained in:
parent
2461a7ca26
commit
86cef6a5dd
|
@ -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)
|
||||
|
|
Reference in a new issue