Malii
Malii

Reputation: 448

OpenGL textured quads and untextured quads

How would I go about having both textured quads and untextured quads both being rendered. The issue is if I have textured quads drawn the untextured quads do not show if the textured one is drawn after, and vice versa.

I'm using LWJGL.

Upvotes: 1

Views: 273

Answers (1)

genpfault
genpfault

Reputation: 52083

Use glEnable(GL_TEXTURE_2D) before your textured quads, and glDisable(GL_TEXTURE_2D) before your untextured qauds.

Upvotes: 2

Related Questions