mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-10-16 04:50:54 +08:00
graphicscommand: Add assertion (the screen cannot be a render source)
This commit is contained in:
@@ -136,6 +136,7 @@ func (q *commandQueue) EnqueueDrawImageCommand(dst, src *Image, vertices []float
|
||||
q.nextIndex += len(vertices) / graphics.VertexFloatNum
|
||||
q.tmpNumIndices += len(indices)
|
||||
|
||||
// TODO: If dst is the screen, reorder the command to be the last.
|
||||
q.doEnqueueDrawImageCommand(dst, src, len(vertices), len(indices), color, mode, filter, address, split)
|
||||
}
|
||||
|
||||
@@ -143,6 +144,7 @@ func (q *commandQueue) EnqueueDrawImageCommand(dst, src *Image, vertices []float
|
||||
//
|
||||
// For a draw-image command, use EnqueueDrawImageCommand.
|
||||
func (q *commandQueue) Enqueue(command command) {
|
||||
// TODO: If dst is the screen, reorder the command to be the last.
|
||||
q.commands = append(q.commands, command)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user