mirror of
https://github.com/jorio/Pomme.git
synced 2024-11-23 06:32:14 +00:00
QD3D: Remove glTextureName from TQ3Pixmap
This commit is contained in:
parent
3675306be7
commit
f1c5bbae35
@ -515,7 +515,6 @@ uint32_t Q3MetaFileParser::Parse_txmm_or_txpm(uint32_t chunkType, uint32_t chunk
|
||||
metaFile.textures[newTextureID] = __Q3Alloc<TQ3Pixmap>(1, 'PXMP');
|
||||
TQ3Pixmap& texture = *metaFile.textures[newTextureID];
|
||||
|
||||
texture.glTextureName = 0;
|
||||
texture.pixelType = pixelType;
|
||||
texture.bitOrder = bitOrder;
|
||||
texture.byteOrder = byteOrder;
|
||||
|
@ -36,11 +36,7 @@ void Q3MetaFile_Dispose(TQ3MetaFile* metaFile)
|
||||
__Q3GetCookie(metaFile, '3DMF');
|
||||
|
||||
for (int i = 0; i < metaFile->numTextures; i++)
|
||||
{
|
||||
if (metaFile->textures[i]->glTextureName)
|
||||
glDeleteTextures(1, &metaFile->textures[i]->glTextureName);
|
||||
Q3Pixmap_Dispose(metaFile->textures[i]);
|
||||
}
|
||||
|
||||
for (int i = 0; i < metaFile->numMeshes; i++)
|
||||
Q3TriMeshData_Dispose(metaFile->meshes[i]);
|
||||
|
@ -306,7 +306,6 @@ typedef struct TQ3CameraPlacement
|
||||
TQ3Vector3D upVector;
|
||||
} TQ3CameraPlacement;
|
||||
|
||||
// WARNING: this structure differs from QD3D.
|
||||
typedef struct TQ3Pixmap
|
||||
{
|
||||
uint8_t *image;
|
||||
@ -317,7 +316,6 @@ typedef struct TQ3Pixmap
|
||||
uint32_t pixelType;
|
||||
uint32_t bitOrder;
|
||||
uint32_t byteOrder;
|
||||
uint32_t glTextureName;
|
||||
} TQ3Pixmap;
|
||||
|
||||
// WARNING: this structure does not exist in QD3D.
|
||||
|
Loading…
Reference in New Issue
Block a user