mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-26 05:41:45 +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)
|
||||
{
|
||||
if (width < 1) width = 1;
|
||||
if (height < 1) height = 1;
|
||||
mCubeTexture = false;
|
||||
mWidth = width;
|
||||
mHeight = height;
|
||||
|
|
Loading…
Reference in a new issue