mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 13:07:26 +01:00
Always take the first destination image + comment
This commit is contained in:
parent
b8cf4ea82f
commit
8abc922e89
@ -330,13 +330,8 @@ func (q *commandQueue) prependPreservedUniforms(uniforms []uint32, shader *Shade
|
|||||||
copy(uniforms[graphics.PreservedUniformUint32Count:], origUniforms)
|
copy(uniforms[graphics.PreservedUniformUint32Count:], origUniforms)
|
||||||
|
|
||||||
// Set the destination texture size.
|
// Set the destination texture size.
|
||||||
var dw, dh int
|
// The number of destination images is always 1 but this might change in the future.
|
||||||
for _, dst := range dsts {
|
dw, dh := dsts[0].InternalSize()
|
||||||
if dst != nil {
|
|
||||||
dw, dh = dst.InternalSize()
|
|
||||||
break
|
|
||||||
}
|
|
||||||
}
|
|
||||||
uniforms[0] = math.Float32bits(float32(dw))
|
uniforms[0] = math.Float32bits(float32(dw))
|
||||||
uniforms[1] = math.Float32bits(float32(dh))
|
uniforms[1] = math.Float32bits(float32(dh))
|
||||||
uniformIndex := 2
|
uniformIndex := 2
|
||||||
|
Loading…
Reference in New Issue
Block a user