Fixed problem with planet textures when switching between lat/long and cube map textures.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3719 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
parent
78f2a3ac05
commit
b048099dc8
@ -915,6 +915,7 @@ static int baseVertexIndexForEdge(int va, int vb, BOOL textured);
|
||||
if (fileName == nil) return NO;
|
||||
|
||||
[self loadTexture:OOTextureSpecFromObject(fileName, nil)];
|
||||
[self deleteDisplayLists];
|
||||
|
||||
OOUInteger i;
|
||||
[self setModelName:kTexturedPlanetModel];
|
||||
@ -1348,6 +1349,12 @@ static int baseVertexIndexForEdge(int va, int vb, BOOL textured)
|
||||
}
|
||||
|
||||
|
||||
- (void)resetGraphicsState
|
||||
{
|
||||
[self deleteDisplayLists];
|
||||
}
|
||||
|
||||
|
||||
- (BOOL) isExplicitlyTextured
|
||||
{
|
||||
return isTextureImage;
|
||||
|
Loading…
x
Reference in New Issue
Block a user