mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-28 09:50:42 +00:00
- fixed: F2DDrawer::AddPoly was missing a texture validation check.
This caused problems when the automap wanted to render portal planes, which normally use an invalid texture as marker. Fixes #263
This commit is contained in:
parent
cf672b508f
commit
8e0c50c22c
1 changed files with 2 additions and 0 deletions
|
@ -721,6 +721,8 @@ void F2DDrawer::AddPoly(FGameTexture* img, FVector4* vt, size_t vtcount, unsigne
|
||||||
RenderCommand dg;
|
RenderCommand dg;
|
||||||
int method = 0;
|
int method = 0;
|
||||||
|
|
||||||
|
if (!img->isValid()) return;
|
||||||
|
|
||||||
dg.mType = DrawTypeTriangles;
|
dg.mType = DrawTypeTriangles;
|
||||||
if (clipx1 > 0 || clipy1 > 0 || clipx2 < GetWidth() - 1 || clipy2 < GetHeight() - 1)
|
if (clipx1 > 0 || clipy1 > 0 || clipx2 < GetWidth() - 1 || clipy2 < GetHeight() - 1)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue