mirror of
https://github.com/minetest/minetest.git
synced 2024-11-23 16:13:46 +01:00
Fix inverted conditions in shader.cpp
This commit is contained in:
parent
4e3fe460e3
commit
ba8fa9e889
@ -772,11 +772,11 @@ ShaderInfo generate_shader(std::string name, u8 material_type, u8 drawtype,
|
|||||||
const c8* pixel_program_ptr = 0;
|
const c8* pixel_program_ptr = 0;
|
||||||
const c8* geometry_program_ptr = 0;
|
const c8* geometry_program_ptr = 0;
|
||||||
if (!vertex_program.empty()) {
|
if (!vertex_program.empty()) {
|
||||||
pixel_program = shaders_header + pixel_program;
|
vertex_program = shaders_header + vertex_program;
|
||||||
vertex_program_ptr = vertex_program.c_str();
|
vertex_program_ptr = vertex_program.c_str();
|
||||||
}
|
}
|
||||||
if (!pixel_program.empty()) {
|
if (!pixel_program.empty()) {
|
||||||
vertex_program = shaders_header + vertex_program;
|
pixel_program = shaders_header + pixel_program;
|
||||||
pixel_program_ptr = pixel_program.c_str();
|
pixel_program_ptr = pixel_program.c_str();
|
||||||
}
|
}
|
||||||
if (!geometry_program.empty()) {
|
if (!geometry_program.empty()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user