mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Fix compile warnings
This commit is contained in:
@@ -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());
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user