Fix compile warnings

This commit is contained in:
baldurk
2022-07-22 18:15:34 +01:00
parent 0b187934de
commit c98b16fd8c
2 changed files with 2 additions and 2 deletions
@@ -1069,7 +1069,7 @@ void PipelineStateViewer::SetupShaderEditButton(QToolButton *button, ResourceId
if(!dbg.files.empty() && dbg.encoding != ShaderEncoding::Unknown)
{
int entryFile = qMax(0, dbg.entryLocation.fileIndex);
if(dbg.editBaseFile >= 0 && dbg.editBaseFile < dbg.files.size())
if(dbg.editBaseFile >= 0 && dbg.editBaseFile < dbg.files.count())
entryFile = dbg.editBaseFile;
QAction *action = new QAction(tr("Edit Source - %1").arg(dbg.files[entryFile].filename), menu);
action->setIcon(Icons::page_white_edit());
+1 -1
View File
@@ -1725,7 +1725,7 @@ bool WrappedID3D11Device::Serialise_CreateGeometryShaderWithStreamOutput(
}
D3D_PRIMITIVE_TOPOLOGY topo =
DXBC::DXBCContainer::GetOutputTopology(pShaderBytecode, BytecodeLength);
DXBC::DXBCContainer::GetOutputTopology(pShaderBytecode, size_t(BytecodeLength));
uint32_t vertsPerPrim = 1;
if(topo == D3D_PRIMITIVE_TOPOLOGY_LINELIST)