mirror of
https://gitlab.com/shinovon/re3-symbian.git
synced 2026-05-23 01:57:21 +03:00
Don't downscale textures while in game
This commit is contained in:
parent
a5c5ba1114
commit
7592dde85c
2 changed files with 3 additions and 1 deletions
|
|
@ -223,7 +223,7 @@ RwTextureGtaStreamRead(RwStream *stream)
|
||||||
if (gGameState == GS_INIT_PLAYING_GAME) {
|
if (gGameState == GS_INIT_PLAYING_GAME) {
|
||||||
texLoadTime = (texNumLoaded * texLoadTime + (float)CTimer::GetCurrentTimeInCycles() / (float)CTimer::GetCyclesPerMillisecond() - preloadTime) / (float)(texNumLoaded+1);
|
texLoadTime = (texNumLoaded * texLoadTime + (float)CTimer::GetCurrentTimeInCycles() / (float)CTimer::GetCyclesPerMillisecond() - preloadTime) / (float)(texNumLoaded+1);
|
||||||
texNumLoaded++;
|
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) {
|
if (tex != nil && tex->raster != nil && RwRasterGetWidth(tex->raster) > 128 || RwRasterGetHeight(tex->raster) > 128) {
|
||||||
// debug("downscaling %s", tex->name);
|
// debug("downscaling %s", tex->name);
|
||||||
downscaleTexture(tex);
|
downscaleTexture(tex);
|
||||||
|
|
|
||||||
2
vendor/librw/src/rwbase.h
vendored
2
vendor/librw/src/rwbase.h
vendored
|
|
@ -21,7 +21,9 @@
|
||||||
// TODO: clean up the opengl defines
|
// TODO: clean up the opengl defines
|
||||||
// and figure out what we even want here...
|
// and figure out what we even want here...
|
||||||
#ifdef RW_GL3
|
#ifdef RW_GL3
|
||||||
|
#ifndef RW_OPENGL
|
||||||
#define RW_OPENGL
|
#define RW_OPENGL
|
||||||
|
#endif
|
||||||
#define RWDEVICE gl3
|
#define RWDEVICE gl3
|
||||||
// doesn't help
|
// doesn't help
|
||||||
//#define RW_GL_USE_VAOS
|
//#define RW_GL_USE_VAOS
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue