Explorar el Código

Added missing files.

Branimir Karadžić hace 11 años
padre
commit
5b87eece6f
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      examples/12-lod/lod.cpp
  2. 1 1
      examples/common/imgui/imgui.cpp

+ 1 - 1
examples/12-lod/lod.cpp

@@ -369,7 +369,7 @@ int _main_(int /*_argc*/, char** /*_argv*/)
 		stipple->data[knightTour[ii].m_y * 8 + knightTour[ii].m_x] = ii*4;
 		stipple->data[knightTour[ii].m_y * 8 + knightTour[ii].m_x] = ii*4;
 	}
 	}
 		
 		
-	textureStipple = bgfx::createTexture2D(8, 4, 1, bgfx::TextureFormat::L8, BGFX_TEXTURE_MAG_POINT|BGFX_TEXTURE_MIN_POINT, stipple);
+	textureStipple = bgfx::createTexture2D(8, 4, 1, bgfx::TextureFormat::R8, BGFX_TEXTURE_MAG_POINT|BGFX_TEXTURE_MIN_POINT, stipple);
 
 
 	Mesh mesh_top[3];
 	Mesh mesh_top[3];
 	mesh_top[0].load("meshes/tree1b_lod0_1.bin");
 	mesh_top[0].load("meshes/tree1b_lod0_1.bin");

+ 1 - 1
examples/common/imgui/imgui.cpp

@@ -216,7 +216,7 @@ struct Imgui
 
 
 		const bgfx::Memory* mem = bgfx::alloc(m_textureWidth * m_textureHeight);
 		const bgfx::Memory* mem = bgfx::alloc(m_textureWidth * m_textureHeight);
 		stbtt_BakeFontBitmap( (uint8_t*)_data, 0, 15.0f, mem->data, m_textureWidth, m_textureHeight, 32, 96, m_cdata);
 		stbtt_BakeFontBitmap( (uint8_t*)_data, 0, 15.0f, mem->data, m_textureWidth, m_textureHeight, 32, 96, m_cdata);
-		m_fontTexture = bgfx::createTexture2D(m_textureWidth, m_textureHeight, 1, bgfx::TextureFormat::L8, BGFX_TEXTURE_NONE, mem);
+		m_fontTexture = bgfx::createTexture2D(m_textureWidth, m_textureHeight, 1, bgfx::TextureFormat::R8, BGFX_TEXTURE_NONE, mem);
 
 
 		return true;
 		return true;
 	}
 	}