Fixed logical error that resulted in fill color affecting textures tint

This commit is contained in:
codeanticode
2011-06-06 09:16:45 +00:00
parent 6769ec4ede
commit d290dffea2
@@ -929,7 +929,7 @@ public class PGraphics extends PImage implements PConstants {
boolean textured = textureImage != null;
if (fill || textured) {
if (fill) {
if (!textured) {
vertex[R] = fillR;
vertex[G] = fillG;
vertex[B] = fillB;
@@ -1020,7 +1020,7 @@ public class PGraphics extends PImage implements PConstants {
boolean textured = textureImage != null;
if (fill || textured) {
if (fill) {
if (!textured) {
vertex[R] = fillR;
vertex[G] = fillG;
vertex[B] = fillB;