1
0
forked from 0ad/0ad

Adds missed shader program validation after 0456b09c3c.

Reported By: Freagarach
This was SVN commit r26637.
This commit is contained in:
Vladislav Belov 2022-03-13 11:01:32 +00:00
parent 272b4c1828
commit 376fe61df9
2 changed files with 12 additions and 2 deletions

View File

@ -38,7 +38,8 @@
#define USE_SHADER_XML_VALIDATION 1
#if USE_SHADER_XML_VALIDATION
# include "ps/XML/RelaxNG.h"
#include "ps/XML/RelaxNG.h"
#include "ps/XML/XMLWriter.h"
#endif
#include <vector>

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;