Skip to content

Commit b9bb7d8

Browse files
committed
Fix missing tess.surfaceShader set in MarkShaderBuild()
1 parent 3079161 commit b9bb7d8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/engine/renderer/GeometryOptimiser.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,9 @@ void MarkShaderBuildFog( const shaderStage_t* pStage ) {
122122
gl_fogQuake3Shader->MarkProgramForBuilding( 0 );
123123
}
124124

125-
void MarkShaderBuild( const shader_t* shader, const int lightMapNum, const bool bspSurface,
125+
void MarkShaderBuild( shader_t* shader, const int lightMapNum, const bool bspSurface,
126126
const bool vertexSkinning, const bool vertexAnimation ) {
127+
tess.surfaceShader = shader;
127128
tess.bspSurface = bspSurface;
128129
tess.lightmapNum = lightMapNum;
129130

src/engine/renderer/GeometryOptimiser.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ void MarkShaderBuildIQM( const IQModel_t* model );
113113
void MarkShaderBuildMDV( const mdvModel_t* model );
114114
void MarkShaderBuildMD5( const md5Model_t* model );
115115

116-
void MarkShaderBuild( const shader_t* shader, const int lightMapNum, const bool bspSurface,
116+
void MarkShaderBuild( shader_t* shader, const int lightMapNum, const bool bspSurface,
117117
const bool vertexSkinning, const bool vertexAnimation );
118118

119119
void OptimiseMapGeometryCore( world_t* world, bspSurface_t** rendererSurfaces, int numSurfaces );

0 commit comments

Comments
 (0)