Skip to content

Commit

Permalink
Hack for broken GLSL shaders
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed Jan 29, 2018
1 parent f8adcd5 commit 04489f4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Layers/xrRenderPC_GL/glResourceManager_Resources.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ SVS* CResourceManager::_CreateVS (LPCSTR _name)
// TODO: OGL: HACK: Implement all shaders. Remove this for PS
if (!file)
{
fallback:
string1024 tmp;
xr_sprintf (tmp, "OGL: %s is missing. Replace with stub_default.vs", cname);
Msg (tmp);
Expand All @@ -217,6 +218,12 @@ SVS* CResourceManager::_CreateVS (LPCSTR _name)

VERIFY(SUCCEEDED(_hr));

if (!SUCCEEDED(_hr))
{
Log("Can't create shader, replacing it with stub..");
goto fallback;
}

// Parse constant, texture, sampler binding
if (SUCCEEDED(_hr))
{
Expand Down

0 comments on commit 04489f4

Please sign in to comment.