Don't downscale textures while in game

This commit is contained in:
Shinovon 2026-05-07 03:59:38 +05:00
parent a5c5ba1114
commit 7592dde85c
2 changed files with 3 additions and 1 deletions

View file

@ -223,7 +223,7 @@ RwTextureGtaStreamRead(RwStream *stream)
if (gGameState == GS_INIT_PLAYING_GAME) {
texLoadTime = (texNumLoaded * texLoadTime + (float)CTimer::GetCurrentTimeInCycles() / (float)CTimer::GetCyclesPerMillisecond() - preloadTime) / (float)(texNumLoaded+1);
texNumLoaded++;
} else /*if (gGameState != GS_PLAYING_GAME)*/ {
} else if (gGameState != GS_PLAYING_GAME || FrontEndMenuManager.m_bMenuActive) {
if (tex != nil && tex->raster != nil && RwRasterGetWidth(tex->raster) > 128 || RwRasterGetHeight(tex->raster) > 128) {
// debug("downscaling %s", tex->name);
downscaleTexture(tex);

View file

@ -21,7 +21,9 @@
// TODO: clean up the opengl defines
// and figure out what we even want here...
#ifdef RW_GL3
#ifndef RW_OPENGL
#define RW_OPENGL
#endif
#define RWDEVICE gl3
// doesn't help
//#define RW_GL_USE_VAOS