Browse Source

Calculate 4d texture coordinates only if `_perspectiveWarping` flag is true

master
Krisjanis Rijnieks 10 years ago
parent
commit
c7713779fc
  1. 8
      src/Surfaces/QuadSurface.cpp

8
src/Surfaces/QuadSurface.cpp

@ -79,11 +79,11 @@ void QuadSurface::draw(){
return;
}
if(mesh.haveVertsChanged() || mesh.haveTexCoordsChanged()){
calculate4dTextureCoords();
}
if(_perspectiveWarping){
if(mesh.haveVertsChanged() || mesh.haveTexCoordsChanged()){
calculate4dTextureCoords();
}
glEnableClientState(GL_TEXTURE_COORD_ARRAY);
glTexCoordPointer(4, GL_FLOAT, 0, quadTexCoordinates);
glVertexPointer(3, GL_FLOAT, 0, quadVertices);

Loading…
Cancel
Save