Skip to content

Commit ba8fa9e

Browse files
committedFeb 9, 2016
Fix inverted conditions in shader.cpp
1 parent 4e3fe46 commit ba8fa9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/shader.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -772,11 +772,11 @@ ShaderInfo generate_shader(std::string name, u8 material_type, u8 drawtype,
772772
const c8* pixel_program_ptr = 0;
773773
const c8* geometry_program_ptr = 0;
774774
if (!vertex_program.empty()) {
775-
pixel_program = shaders_header + pixel_program;
775+
vertex_program = shaders_header + vertex_program;
776776
vertex_program_ptr = vertex_program.c_str();
777777
}
778778
if (!pixel_program.empty()) {
779-
vertex_program = shaders_header + vertex_program;
779+
pixel_program = shaders_header + pixel_program;
780780
pixel_program_ptr = pixel_program.c_str();
781781
}
782782
if (!geometry_program.empty()) {

0 commit comments

Comments
 (0)
Please sign in to comment.