rhi: d3d: gl: Remove incorrect exec.Cmd.Buf. assumption
May very well be called within an active pass when going through beginExternal() (think examples like d3d11underqml) Change-Id: Ie98e72609308f47497d83fbe10c19ad1ae8eade3 Reviewed-by: Lars Knoll <lars.knoll@qt.io>bb10
parent
484fc8545f
commit
8862570905
|
|
@ -1938,8 +1938,6 @@ void QRhiD3D11::resetShaderResources()
|
|||
|
||||
void QRhiD3D11::executeCommandBuffer(QD3D11CommandBuffer *cbD, QD3D11SwapChain *timestampSwapChain)
|
||||
{
|
||||
Q_ASSERT(cbD->recordingPass == QD3D11CommandBuffer::NoPass);
|
||||
|
||||
quint32 stencilRef = 0;
|
||||
float blendConstants[] = { 1, 1, 1, 1 };
|
||||
|
||||
|
|
|
|||
|
|
@ -1500,8 +1500,6 @@ static inline GLenum toGlTextureCompareFunc(QRhiSampler::CompareOp op)
|
|||
void QRhiGles2::executeCommandBuffer(QRhiCommandBuffer *cb)
|
||||
{
|
||||
QGles2CommandBuffer *cbD = QRHI_RES(QGles2CommandBuffer, cb);
|
||||
Q_ASSERT(cbD->recordingPass == QGles2CommandBuffer::NoPass);
|
||||
|
||||
GLenum indexType = GL_UNSIGNED_SHORT;
|
||||
quint32 indexStride = sizeof(quint16);
|
||||
quint32 indexOffset = 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue