TINYGL: Minor optimization.

Note: removed a duplicated if check.
This commit is contained in:
Stefano Musumeci 2014-08-01 19:08:43 +02:00
parent 447aa02d03
commit 5049413d24

View File

@ -150,8 +150,6 @@ struct FrameBuffer {
FORCEINLINE void writePixel(int pixel, int value) {
byte rSrc, gSrc, bSrc, aSrc;
this->pbuf.getFormat().colorToARGB(value, aSrc, rSrc, gSrc, bSrc);
if (!checkAlphaTest(aSrc))
return;
if (_blendingEnabled == false) {
this->pbuf.setPixelAt(pixel, value);