diff options
author | 2016-04-04 13:52:25 +0200 | |
---|---|---|
committer | 2016-04-04 13:52:25 +0200 | |
commit | e63f379a0ef420cf720b7655ea63e19330954eb8 (patch) | |
tree | 1c51de36d7fbd9f5218b165b71f3ec9aa1bcfe36 /3rdparty/bgfx/examples/03-raymarch/raymarch.cpp | |
parent | 9496a5b24d7fb14dcb38bd16ec8ca528ebdfee1b (diff) |
Update BGFX to latest (nw)
Diffstat (limited to '3rdparty/bgfx/examples/03-raymarch/raymarch.cpp')
-rw-r--r-- | 3rdparty/bgfx/examples/03-raymarch/raymarch.cpp | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/3rdparty/bgfx/examples/03-raymarch/raymarch.cpp b/3rdparty/bgfx/examples/03-raymarch/raymarch.cpp index 60a4664546e..0e4a84c3dc9 100644 --- a/3rdparty/bgfx/examples/03-raymarch/raymarch.cpp +++ b/3rdparty/bgfx/examples/03-raymarch/raymarch.cpp @@ -107,7 +107,7 @@ class ExampleRaymarch : public entry::AppI void init(int _argc, char** _argv) BX_OVERRIDE { Args args(_argc, _argv); - + m_width = 1280; m_height = 720; m_debug = BGFX_DEBUG_TEXT; @@ -127,18 +127,8 @@ class ExampleRaymarch : public entry::AppI , 0 ); - // Setup root path for binary shaders. Shader binaries are different - // for each renderer. - switch (bgfx::getRendererType() ) - { - default: - break; - - case bgfx::RendererType::OpenGL: - case bgfx::RendererType::OpenGLES: - s_oglNdc = true; - break; - } + const bgfx::Caps* caps = bgfx::getCaps(); + s_oglNdc = caps->homogeneousDepth; // Create vertex stream declaration. PosColorTexCoord0Vertex::init(); |