mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-11 19:48:54 +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) {
|
func (context *GraphicsContext) SetOffscreen(tex graphics.Texture) {
|
||||||
|
C.glFlush()
|
||||||
|
|
||||||
var texture *Texture = nil
|
var texture *Texture = nil
|
||||||
if tex != nil {
|
if tex != nil {
|
||||||
texture = tex.(*Texture)
|
texture = tex.(*Texture)
|
||||||
}
|
}
|
||||||
// TODO: glFlush() here?
|
|
||||||
framebuffer := C.GLuint(0)
|
framebuffer := C.GLuint(0)
|
||||||
if texture != nil {
|
if texture != nil {
|
||||||
framebuffer = context.getFramebuffer(texture)
|
framebuffer = context.getFramebuffer(texture)
|
||||||
|
Loading…
Reference in New Issue
Block a user