mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-19 05:52:11 +01:00
Revert "[dxbc] Move shex check to constructor"
Breaks stuff for unknown reasons.
This commit is contained in:
parent
f0a0e1b964
commit
c6611dffa7
@ -32,9 +32,6 @@ namespace dxvk {
|
||||
if ((tag == "PCSG") || (tag == "PSG1"))
|
||||
m_psgnChunk = new DxbcIsgn(chunkReader, tag);
|
||||
}
|
||||
|
||||
if (m_shexChunk == nullptr)
|
||||
throw DxvkError("DxbcModule::compile: No SHDR/SHEX chunk");
|
||||
}
|
||||
|
||||
|
||||
@ -46,6 +43,8 @@ namespace dxvk {
|
||||
Rc<DxvkShader> DxbcModule::compile(
|
||||
const DxbcModuleInfo& moduleInfo,
|
||||
const std::string& fileName) const {
|
||||
if (m_shexChunk == nullptr)
|
||||
throw DxvkError("DxbcModule::compile: No SHDR/SHEX chunk");
|
||||
|
||||
DxbcAnalysisInfo analysisInfo;
|
||||
|
||||
@ -71,6 +70,9 @@ namespace dxvk {
|
||||
Rc<DxvkShader> DxbcModule::compilePassthroughShader(
|
||||
const DxbcModuleInfo& moduleInfo,
|
||||
const std::string& fileName) const {
|
||||
if (m_shexChunk == nullptr)
|
||||
throw DxvkError("DxbcModule::compile: No SHDR/SHEX chunk");
|
||||
|
||||
DxbcAnalysisInfo analysisInfo;
|
||||
|
||||
DxbcCompiler compiler(
|
||||
|
Loading…
x
Reference in New Issue
Block a user