mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
internal/graphicsdriver/directx: fix a suspicious error chceck
This commit is contained in:
parent
1daf3bd8ff
commit
6f182d1124
@ -361,7 +361,7 @@ func (p *pipelineStates) builtinGraphicsPipelineState(device *_ID3D12Device, key
|
||||
|
||||
func (p *pipelineStates) useGraphicsPipelineState(device *_ID3D12Device, commandList *_ID3D12GraphicsCommandList, frameIndex int, pipelineState *_ID3D12PipelineState, srcs [graphics.ShaderImageCount]*Image, uniforms []float32) error {
|
||||
idx := len(p.constantBuffers[frameIndex])
|
||||
if idx >= numDescriptorsPerFrame*2 {
|
||||
if idx >= numDescriptorsPerFrame {
|
||||
return fmt.Errorf("directx: too many constant buffers")
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user