mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
Add glFlush
This commit is contained in:
parent
2cadd50d01
commit
532b52d389
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user