TINYGL: Added assert to ensure correct texture format.

This commit is contained in:
Stefano Musumeci 2014-06-12 16:39:30 +02:00
parent 10c4d6d4f5
commit 2be487a1f0

View file

@ -243,6 +243,7 @@ void ZB_fillTriangleMappingPerspective(ZBuffer *zb, ZBufferPoint *p0, ZBufferPoi
pz1 = zb->zbuf + p0->y * zb->xsize;
texture = zb->current_texture;
assert(texture.getFormat().bytesPerPixel == 4);
fdzdx = (float)dzdx;
fndzdx = NB_INTERP * fdzdx;
ndszdx = NB_INTERP * dszdx;