Fixed: textures of null size should not be allowed (resolves #324)

This commit is contained in:
ZZYZX 2019-12-25 13:32:11 +02:00
parent 33b888e5d2
commit 054a30dd1b

View file

@ -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;