Add glFlush

This commit is contained in:
Hajime Hoshi 2013-06-19 09:41:17 +09:00
parent 2cadd50d01
commit 532b52d389

View File

@ -120,11 +120,12 @@ func abs(x int) int {
}
func (context *GraphicsContext) SetOffscreen(tex graphics.Texture) {
C.glFlush()
var texture *Texture = nil
if tex != nil {
texture = tex.(*Texture)
}
// TODO: glFlush() here?
framebuffer := C.GLuint(0)
if texture != nil {
framebuffer = context.getFramebuffer(texture)