Skip to content

Commit

Permalink
Fix inverted conditions in shader.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
nerzhul committed Feb 9, 2016
1 parent a899e4b commit e90f7f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit e90f7f8

Please sign in to comment.