From c165fb20db55f6e348f01c6e3ba155ef4b5ba9d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Mon, 8 Jun 2015 10:41:48 -0700 Subject: [PATCH] Cleanup. --- examples/18-ibl/ibl.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/18-ibl/ibl.cpp b/examples/18-ibl/ibl.cpp index aad26d5b..2291fef3 100644 --- a/examples/18-ibl/ibl.cpp +++ b/examples/18-ibl/ibl.cpp @@ -479,7 +479,7 @@ int _main_(int /*_argc*/, char** /*_argv*/) bgfx::setViewRect(1, 0, 0, width, height); // View 0. - bgfx::setTexture(4, s_texCube, lightProbes[currentLightProbe].m_tex); + bgfx::setTexture(0, s_texCube, lightProbes[currentLightProbe].m_tex); bgfx::setProgram(programSky); bgfx::setState(BGFX_STATE_RGB_WRITE|BGFX_STATE_ALPHA_WRITE); screenSpaceQuad( (float)width, (float)height, true); @@ -500,8 +500,8 @@ int _main_(int /*_argc*/, char** /*_argv*/) , 0.0f ); - bgfx::setTexture(4, s_texCube, lightProbes[currentLightProbe].m_tex); - bgfx::setTexture(5, s_texCubeIrr, lightProbes[currentLightProbe].m_texIrr); + bgfx::setTexture(0, s_texCube, lightProbes[currentLightProbe].m_tex); + bgfx::setTexture(1, s_texCubeIrr, lightProbes[currentLightProbe].m_texIrr); meshSubmit(meshBunny, 1, programMesh, mtx); // Advance to next frame. Rendering thread will be kicked to