mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-02-17 01:22:18 +00:00
Fixed: textures of null size should not be allowed (resolves #324)
This commit is contained in:
parent
33b888e5d2
commit
054a30dd1b
1 changed files with 2 additions and 0 deletions
|
@ -36,6 +36,8 @@ GLTexture::~GLTexture()
|
||||||
|
|
||||||
void GLTexture::Set2DImage(int width, int height)
|
void GLTexture::Set2DImage(int width, int height)
|
||||||
{
|
{
|
||||||
|
if (width < 1) width = 1;
|
||||||
|
if (height < 1) height = 1;
|
||||||
mCubeTexture = false;
|
mCubeTexture = false;
|
||||||
mWidth = width;
|
mWidth = width;
|
||||||
mHeight = height;
|
mHeight = height;
|
||||||
|
|
Loading…
Reference in a new issue