aboutsummaryrefslogtreecommitdiff
path: root/src/shader.cpp
diff options
context:
space:
mode:
authorPilzAdam <pilzadam@minetest.net>2013-07-08 01:58:22 +0200
committerPilzAdam <pilzadam@minetest.net>2013-07-08 01:58:49 +0200
commit6bc3a43d52c04b6a91787bcb49d0044f1452fc4e (patch)
tree533c824948d2ccd753649a4c20d12d711d5f1a3c /src/shader.cpp
parent88d43af276a4ed85500863b427bf370d8eca2095 (diff)
downloadminetest-6bc3a43d52c04b6a91787bcb49d0044f1452fc4e.tar.gz
minetest-6bc3a43d52c04b6a91787bcb49d0044f1452fc4e.tar.bz2
minetest-6bc3a43d52c04b6a91787bcb49d0044f1452fc4e.zip
Settings: everything != 0 equals true; remove .asm shaders
Diffstat (limited to 'src/shader.cpp')
-rw-r--r--src/shader.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/shader.cpp b/src/shader.cpp
index 19b8d7c9d..ed8cc5b73 100644
--- a/src/shader.cpp
+++ b/src/shader.cpp
@@ -624,7 +624,6 @@ ShaderInfo generate_shader(std::string name, IrrlichtDevice *device,
}
}
- // 0 = off, 1 = assembly shaders only, 2 = highlevel or assembly
bool enable_shaders = g_settings->getBool("enable_shaders");
if(!enable_shaders)
return shaderinfo;
@@ -778,24 +777,4 @@ void load_shaders(std::string name, SourceShaderCache *sourcecache,
}
}
- if(enable_shaders){
- // Look for assembly shaders
- if(drivertype == video::EDT_DIRECT3D8){
- // Direct3D 8 assembly shaders
- vertex_program = sourcecache->getOrLoad(name, "d3d8_vertex.asm");
- pixel_program = sourcecache->getOrLoad(name, "d3d8_pixel.asm");
- }
- else if(drivertype == video::EDT_DIRECT3D9){
- // Direct3D 9 assembly shaders
- vertex_program = sourcecache->getOrLoad(name, "d3d9_vertex.asm");
- pixel_program = sourcecache->getOrLoad(name, "d3d9_pixel.asm");
- }
- else if(drivertype == video::EDT_OPENGL){
- // OpenGL assembly shaders
- vertex_program = sourcecache->getOrLoad(name, "opengl_vertex.asm");
- pixel_program = sourcecache->getOrLoad(name, "opengl_fragment.asm");
- }
- if(vertex_program != "" || pixel_program != "")
- return;
- }
}