mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-25 21:51:09 +00:00
- fixed incorrect check for SW texture recreation.
This commit is contained in:
parent
5fbc723842
commit
cd00f1fb45
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ SWSceneDrawer::~SWSceneDrawer()
|
||||||
void SWSceneDrawer::RenderView(player_t *player)
|
void SWSceneDrawer::RenderView(player_t *player)
|
||||||
{
|
{
|
||||||
DCanvas buffer(screen->GetWidth(), screen->GetHeight(), swtruecolor);
|
DCanvas buffer(screen->GetWidth(), screen->GetHeight(), swtruecolor);
|
||||||
if (FBTexture == nullptr || FBTexture->hwtex == nullptr || FBTexture->GetWidth() != screen->GetWidth() || FBTexture->GetHeight() != screen->GetHeight() || (swtruecolor?4:1) != FBTexture->WidthBits)
|
if (FBTexture == nullptr || FBTexture->hwtex == nullptr || FBTexture->GetWidth() != screen->GetWidth() || FBTexture->GetHeight() != screen->GetHeight() || (swtruecolor? 1:0) != FBTexture->WidthBits)
|
||||||
{
|
{
|
||||||
// This manually constructs its own material here.
|
// This manually constructs its own material here.
|
||||||
if (FBTexture != nullptr) delete FBTexture;
|
if (FBTexture != nullptr) delete FBTexture;
|
||||||
|
|
Loading…
Reference in a new issue