Skip to content
Permalink
Browse files

Fix inverted conditions in shader.cpp

  • Loading branch information
nerzhul committed Feb 9, 2016
1 parent 4e3fe46 commit ba8fa9e889b399d67f4e2172e7dbf7717fdc2b86
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/shader.cpp
@@ -772,11 +772,11 @@ ShaderInfo generate_shader(std::string name, u8 material_type, u8 drawtype,
const c8* pixel_program_ptr = 0;
const c8* geometry_program_ptr = 0;
if (!vertex_program.empty()) {
pixel_program = shaders_header + pixel_program;
vertex_program = shaders_header + vertex_program;
vertex_program_ptr = vertex_program.c_str();
}
if (!pixel_program.empty()) {
vertex_program = shaders_header + vertex_program;
pixel_program = shaders_header + pixel_program;
pixel_program_ptr = pixel_program.c_str();
}
if (!geometry_program.empty()) {

0 comments on commit ba8fa9e

Please sign in to comment.