mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 14:51:40 +00:00
- Fixed tutti-frutti and crash with liquid warp effects on the Carmack renderer when texture resizing was disabled. (#1063)
This commit is contained in:
parent
cc0594df2e
commit
4bfb0e937f
1 changed files with 3 additions and 2 deletions
|
@ -42,6 +42,7 @@
|
|||
|
||||
EXTERN_CVAR(Int, gl_texture_hqresizemult)
|
||||
EXTERN_CVAR(Int, gl_texture_hqresizemode)
|
||||
EXTERN_CVAR(Int, gl_texture_hqresize_targets)
|
||||
|
||||
FWarpTexture::FWarpTexture (FTexture *source, int warptype)
|
||||
: FSoftwareTexture (source)
|
||||
|
@ -63,7 +64,7 @@ const uint32_t *FWarpTexture::GetPixelsBgra()
|
|||
|
||||
if (time != GenTime[2])
|
||||
{
|
||||
if (gl_texture_hqresizemode == 0 || gl_texture_hqresizemult < 1)
|
||||
if (gl_texture_hqresizemode == 0 || gl_texture_hqresizemult < 1 || !(gl_texture_hqresize_targets & 1))
|
||||
resizeMult = 1;
|
||||
|
||||
auto otherpix = FSoftwareTexture::GetPixelsBgra();
|
||||
|
@ -84,7 +85,7 @@ const uint8_t *FWarpTexture::GetPixels(int index)
|
|||
|
||||
if (time != GenTime[index])
|
||||
{
|
||||
if (gl_texture_hqresizemode == 0 || gl_texture_hqresizemult < 1)
|
||||
if (gl_texture_hqresizemode == 0 || gl_texture_hqresizemult < 1 || !(gl_texture_hqresize_targets & 1))
|
||||
resizeMult = 1;
|
||||
|
||||
const uint8_t *otherpix = FSoftwareTexture::GetPixels(index);
|
||||
|
|
Loading…
Reference in a new issue