Skip to content

Commit e52288d

Browse files
committed
CResourceManager: Allow pass-through geometry shaders.
1 parent d70bb4c commit e52288d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Layers/xrRenderPC_GL/glResourceManager_Resources.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,10 @@ SGS* CResourceManager::_CreateGS (LPCSTR name)
333333
SGS* _gs = xr_new<SGS> ();
334334
_gs->dwFlags |= xr_resource_flagged::RF_REGISTERED;
335335
m_gs.insert (mk_pair(_gs->set_name(name),_gs));
336-
VERIFY(strcmpi(name, "null") != 0);
336+
if (0==stricmp(name,"null")) {
337+
_gs->gs = NULL;
338+
return _gs;
339+
}
337340

338341
// Open file
339342
string_path cname;

0 commit comments

Comments
 (0)