fix some warnings (errors) on release build.
This commit is contained in:
@@ -91,8 +91,10 @@ namespace vk
|
||||
std::string const & shaderText )
|
||||
{
|
||||
std::vector<unsigned int> shaderSPV;
|
||||
bool ok = GLSLtoSPV( shaderStage, shaderText, shaderSPV );
|
||||
assert( ok );
|
||||
if ( !GLSLtoSPV( shaderStage, shaderText, shaderSPV ) )
|
||||
{
|
||||
throw std::runtime_error( "Could not convert glsl shader to spir-v -> terminating" );
|
||||
}
|
||||
|
||||
return device->createShaderModuleUnique( vk::ShaderModuleCreateInfo( vk::ShaderModuleCreateFlags(), shaderSPV ) );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user