We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c47d03f commit f3b036bCopy full SHA for f3b036b
src/Layers/xrRenderPC_GL/rgl.cpp
@@ -885,7 +885,11 @@ HRESULT CRender::shader_compile(
885
string256 name_comment;
886
sprintf_s(name_comment, "// %s\n", name);
887
const char** sources = xr_alloc<const char*>(sources_len);
888
+#ifdef DEBUG
889
+ sources[0] = "#version 410\n#pragma optimize (off)\n";
890
+#else
891
sources[0] = "#version 410\n";
892
+#endif
893
sources[1] = name_comment;
894
memcpy(sources + 2, defines, def_len * sizeof(char*));
895
memcpy(sources + def_len + 2, source.data(), source.size() * sizeof(char*));
0 commit comments