summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bgfx/examples/16-shadowmaps/shadowmaps.cpp
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/bgfx/examples/16-shadowmaps/shadowmaps.cpp')
-rw-r--r--3rdparty/bgfx/examples/16-shadowmaps/shadowmaps.cpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/3rdparty/bgfx/examples/16-shadowmaps/shadowmaps.cpp b/3rdparty/bgfx/examples/16-shadowmaps/shadowmaps.cpp
index 1589290de77..86b3d7082f6 100644
--- a/3rdparty/bgfx/examples/16-shadowmaps/shadowmaps.cpp
+++ b/3rdparty/bgfx/examples/16-shadowmaps/shadowmaps.cpp
@@ -220,7 +220,6 @@ static const uint16_t s_planeIndices[] =
1, 3, 2,
};
-static const char* s_shaderPath = NULL;
static bool s_flipV = false;
static float s_texelHalf = 0.0f;
@@ -1333,24 +1332,16 @@ int _main_(int /*_argc*/, char** /*_argv*/)
// for each renderer.
switch (bgfx::getRendererType() )
{
- default:
case bgfx::RendererType::Direct3D9:
- s_shaderPath = "shaders/dx9/";
s_texelHalf = 0.5f;
break;
- case bgfx::RendererType::Direct3D11:
- s_shaderPath = "shaders/dx11/";
- break;
-
case bgfx::RendererType::OpenGL:
- s_shaderPath = "shaders/glsl/";
+ case bgfx::RendererType::OpenGLES:
s_flipV = true;
break;
- case bgfx::RendererType::OpenGLES:
- s_shaderPath = "shaders/gles/";
- s_flipV = true;
+ default:
break;
}