mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
internal/graphicsdriver/directx: fix a wrong constant usage
This commit is contained in:
parent
8d74039617
commit
e3d025bf4f
@ -769,8 +769,9 @@ func (g *Graphics) End(present bool) error {
|
|||||||
g.commandQueue.ExecuteCommandLists([]*_ID3D12GraphicsCommandList{g.drawCommandList})
|
g.commandQueue.ExecuteCommandLists([]*_ID3D12GraphicsCommandList{g.drawCommandList})
|
||||||
|
|
||||||
// Release vertices and indices buffers when too many ones were created.
|
// Release vertices and indices buffers when too many ones were created.
|
||||||
|
// The threshold is an arbitrary number.
|
||||||
// This is needed espciallly for testings, where present is always false.
|
// This is needed espciallly for testings, where present is always false.
|
||||||
if len(g.vertices[g.frameIndex]) >= numDescriptorsPerFrame {
|
if len(g.vertices[g.frameIndex]) >= 16 {
|
||||||
if err := g.waitForCommandQueue(); err != nil {
|
if err := g.waitForCommandQueue(); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user