1. Michael Ludwig
  2. ferox

Commits

Michael Ludwig  committed 7c1a17e

Properly enable color attributes.

  • Participants
  • Parent commits 8d67c8d
  • Branches default

Comments (0)

Files changed (2)

File ferox-renderer/ferox-renderer-jogl/src/main/java/com/ferox/renderer/impl/jogl/JoglFixedFunctionRenderer.java

View file
  • Ignore whitespace
         case VERTICES:
             state = GL2.GL_VERTEX_ARRAY;
             break;
+        case COLORS:
+        	state = GL2.GL_COLOR_ARRAY;
+        	break;
         }
         
         if (enable)

File ferox-renderer/ferox-renderer-lwjgl/src/main/java/com/ferox/renderer/impl/lwjgl/LwjglFixedFunctionRenderer.java

View file
  • Ignore whitespace
         case VERTICES:
             state = GL11.GL_VERTEX_ARRAY;
             break;
+        case COLORS:
+        	state = GL11.GL_COLOR_ARRAY;
+        	break;
         }
         
         if (enable)