1
0
forked from mirrors/0ad

Adds missed shader program validation after 0456b09c3c.

Reported By: Freagarach
This was SVN commit r26637.
This commit is contained in:
vladislavbelov
2022-03-13 11:01:32 +00:00
parent 272b4c1828
commit 376fe61df9
2 changed files with 12 additions and 2 deletions
+10 -1
View File
@@ -33,8 +33,17 @@
#include "renderer/backend/gl/DeviceCommandContext.h"
#include "renderer/Renderer.h"
#define USE_SHADER_XML_VALIDATION 1
#if USE_SHADER_XML_VALIDATION
#include "ps/XML/RelaxNG.h"
#include "ps/XML/XMLWriter.h"
#endif
#include <algorithm>
TIMER_ADD_CLIENT(tc_ShaderProgramValidation);
namespace
{
@@ -754,7 +763,7 @@ CShaderProgramPtr CShaderProgram::Create(const char* name, const CShaderDefines&
#if USE_SHADER_XML_VALIDATION
{
TIMER_ACCRUE(tc_ShaderValidation);
TIMER_ACCRUE(tc_ShaderProgramValidation);
// Serialize the XMB data and pass it to the validator
XMLWriter_File shaderFile;