Adds missed shader program validation after 0456b09c3c
.
Reported By: Freagarach This was SVN commit r26637.
This commit is contained in:
parent
272b4c1828
commit
376fe61df9
@ -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>
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user