summaryrefslogtreecommitdiffstats
path: root/src/rw
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-04-26 20:16:31 +0200
committeraap <aap@papnet.eu>2020-04-26 20:16:31 +0200
commit41586c7cda403291be80f414082d16b5333933a5 (patch)
tree4832dde8a039ec2e831f0cb044ad4ae6c06ad16d /src/rw
parentRemove struct workaround in CControllerConfigManager (diff)
downloadre3-41586c7cda403291be80f414082d16b5333933a5.tar
re3-41586c7cda403291be80f414082d16b5333933a5.tar.gz
re3-41586c7cda403291be80f414082d16b5333933a5.tar.bz2
re3-41586c7cda403291be80f414082d16b5333933a5.tar.lz
re3-41586c7cda403291be80f414082d16b5333933a5.tar.xz
re3-41586c7cda403291be80f414082d16b5333933a5.tar.zst
re3-41586c7cda403291be80f414082d16b5333933a5.zip
Diffstat (limited to 'src/rw')
-rw-r--r--src/rw/TxdStore.cpp35
1 files changed, 0 insertions, 35 deletions
diff --git a/src/rw/TxdStore.cpp b/src/rw/TxdStore.cpp
index bb7386d5..51d018f6 100644
--- a/src/rw/TxdStore.cpp
+++ b/src/rw/TxdStore.cpp
@@ -127,38 +127,6 @@ CTxdStore::RemoveRefWithoutDelete(int slot)
GetSlot(slot)->refCount--;
}
-#ifdef RW_GL3
-rw::Raster*
-convertTexRaster(rw::Raster* ras)
-{
- rw::Image* img = ras->toImage();
-// ras->destroy();
- img->unindex();
- ras = rw::Raster::createFromImage(img);
- img->destroy();
- return ras;
-}
-
-void
-convertTxd(rw::TexDictionary* txd)
-{
- rw::Texture* tex;
- FORLIST(lnk, txd->textures) {
- tex = rw::Texture::fromDict(lnk);
- rw::Raster* ras = tex->raster;
- if (ras && ras->platform != rw::platform) {
- if (!(ras->platform == rw::PLATFORM_D3D8 && rw::platform == rw::PLATFORM_D3D9 ||
- ras->platform == rw::PLATFORM_D3D9 && rw::platform == rw::PLATFORM_D3D8)) {
- tex->raster = convertTexRaster(ras);
- ras->destroy();
- }
- }
- tex->setFilter(rw::Texture::LINEAR);
- }
-
-}
-#endif
-
bool
CTxdStore::LoadTxd(int slot, RwStream *stream)
{
@@ -166,9 +134,6 @@ CTxdStore::LoadTxd(int slot, RwStream *stream)
if(RwStreamFindChunk(stream, rwID_TEXDICTIONARY, nil, nil)){
def->texDict = RwTexDictionaryGtaStreamRead(stream);
-#ifdef RW_GL3
- convertTxd(def->texDict);
-#endif
return def->texDict != nil;
}
printf("Failed to load TXD\n");