From cacff49d9957df0cd1dd159924e65246dad2924e Mon Sep 17 00:00:00 2001 From: bkaradzic Date: Sun, 8 Sep 2013 23:14:34 -0700 Subject: [PATCH] Cleanup. --- examples/06-bump/bump.cpp | 2 +- examples/08-update/update.cpp | 9 +-------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/examples/06-bump/bump.cpp b/examples/06-bump/bump.cpp index e4310bff..5af2241f 100644 --- a/examples/06-bump/bump.cpp +++ b/examples/06-bump/bump.cpp @@ -338,7 +338,7 @@ int _main_(int /*_argc*/, char** /*_argv*/) bgfx::destroyFragmentShader(fsh); // Load diffuse texture. - mem = loadTexture("texture_compression_ptc22.pvr"); //fieldstone-rgba.dds"); + mem = loadTexture("fieldstone-rgba.dds"); bgfx::TextureHandle textureColor = bgfx::createTexture(mem); // Load normal texture. diff --git a/examples/08-update/update.cpp b/examples/08-update/update.cpp index dce4e8d3..72d55315 100644 --- a/examples/08-update/update.cpp +++ b/examples/08-update/update.cpp @@ -233,13 +233,6 @@ int _main_(int /*_argc*/, char** /*_argv*/) , BGFX_TEXTURE_MIN_POINT|BGFX_TEXTURE_MAG_POINT|BGFX_TEXTURE_MIP_POINT ); - updateTextureCubeRectBgra8(textureCube, 0, 0, 0, textureSide, textureSide, 0xff, 0, 0); - updateTextureCubeRectBgra8(textureCube, 1, 0, 0, textureSide, textureSide, 0xff, 0, 0); - updateTextureCubeRectBgra8(textureCube, 2, 0, 0, textureSide, textureSide, 0xff, 0, 0); - updateTextureCubeRectBgra8(textureCube, 3, 0, 0, textureSide, textureSide, 0xff, 0, 0); - updateTextureCubeRectBgra8(textureCube, 4, 0, 0, textureSide, textureSide, 0xff, 0, 0); - updateTextureCubeRectBgra8(textureCube, 5, 0, 0, textureSide, textureSide, 0xff, 0, 0); - uint8_t rr = rand()%255; uint8_t gg = rand()%255; uint8_t bb = rand()%255; @@ -291,7 +284,7 @@ int _main_(int /*_argc*/, char** /*_argv*/) ++hit; const Pack2D& rect = face.m_rect; - updateTextureCubeRectBgra8(textureCube, face.m_side, rect.m_x, rect.m_y, rect.m_width, rect.m_height, 0, 0xff, 0); + updateTextureCubeRectBgra8(textureCube, face.m_side, rect.m_x, rect.m_y, rect.m_width, rect.m_height, rr, gg, bb); rr = rand()%255; gg = rand()%255;