fixed messed up textures of the cluster

This commit is contained in:
Anakin
2016-11-21 15:02:33 +01:00
parent 9abd285239
commit 60cc7bb562
10 changed files with 7 additions and 3 deletions

View File

@@ -324,7 +324,7 @@ void OpenGLController::updateScene()
{
// give texture to the shader
std::uint32_t tempTexIndex = segIt->textureIndex >= vTextures.size() ? vTextures.size() - 1 : segIt->textureIndex;
glTexImage2D(
GL_TEXTURE_2D,
0,