TINYGL: Added assert to ensure correct texture format.
This commit is contained in:
parent
10c4d6d4f5
commit
2be487a1f0
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue