mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-27 03:02:49 +01:00
graphics: Move a comment
This commit is contained in:
parent
0ed95031c5
commit
af87d3fcf4
@ -133,13 +133,13 @@ type replacePixelsCommand struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c *replacePixelsCommand) Exec(context *opengl.Context) error {
|
func (c *replacePixelsCommand) Exec(context *opengl.Context) error {
|
||||||
|
if err := c.dst.framebuffer.setAsViewport(context); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
// Filling with non black or white color is required here for glTexSubImage2D.
|
// Filling with non black or white color is required here for glTexSubImage2D.
|
||||||
// Very mysterious but this actually works (Issue #186)
|
// Very mysterious but this actually works (Issue #186)
|
||||||
// TODO: As shader bug was fixed at f537378f2a6a8ef56e1acf1c03034967b77c7b51,
|
// TODO: As shader bug was fixed at f537378f2a6a8ef56e1acf1c03034967b77c7b51,
|
||||||
// can we remove this?
|
// can we remove this?
|
||||||
if err := c.dst.framebuffer.setAsViewport(context); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if err := context.FillFramebuffer(0, 0, 0.5, 1); err != nil {
|
if err := context.FillFramebuffer(0, 0, 0.5, 1); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user