Changed some GL11 calls to GlStateManager calls in render code. Testing will ensue...