Skip to content

Commit

Permalink
fixed: uv arrays were not disabled in voxel rendering and after disab…
Browse files Browse the repository at this point in the history
…ling shaders
  • Loading branch information
ProPuke committed Oct 18, 2015
1 parent ac9a65b commit a7751f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions openb3dlib.mod/openb3d/src/material.cpp
Expand Up @@ -820,6 +820,8 @@ void Shader::TurnOff(){
// reset texture matrix
glMatrixMode(GL_TEXTURE);
glLoadIdentity();

glDisableClientState(GL_TEXTURE_COORD_ARRAY);

if (Shader_Tex[ix]->is3D==0){
glDisable(GL_TEXTURE_2D);
Expand Down
1 change: 1 addition & 0 deletions openb3dlib.mod/openb3d/src/voxel.cpp
Expand Up @@ -338,6 +338,7 @@ void VoxelSprite::Render(){

glDisable(GL_TEXTURE_3D);
}
glDisableClientState(GL_TEXTURE_COORD_ARRAY);
}


0 comments on commit a7751f4

Please sign in to comment.