graphics: Reset Viewport cache at each frame

This commit is contained in:
Hajime Hoshi 2016-06-22 02:08:58 +09:00
parent 3f59c9394c
commit e9de66aca2

View File

@ -67,6 +67,8 @@ func (c *graphicsContext) needsRestoring(context *opengl.Context) (bool, error)
}
func (c *graphicsContext) initializeIfNeeded() error {
// glViewport must be called at every frame on iOS
ui.GLContext().ResetViewportSize()
if !c.initialized {
if err := graphics.Initialize(ui.GLContext()); err != nil {
return err