Sign in to follow this  

glTexEnvi problem

Recommended Posts

222        glEnable(GL_TEXTURE_2D)
223        glEnable(GL_BLEND)
224        glBindTexture(GL_TEXTURE_2D, 1)
226        glColor4f(1, 1, 1, 1)
227        glBegin(GL_QUADS)
228        glTexCoord2d(0, 0)
229        glVertex2d(0, 0)
230        glTexCoord2d(1, 0)
231        glVertex2d(640, 0)
232        glTexCoord2d(1, 1)
233        glVertex2d(640, 480)
234        glTexCoord2d(0, 1)
235        glVertex2d(0, 480)
236        glEnd()
237        glDisable(GL_TEXTURE_2D)
Problem: Nothing drawn after this appears. I have a line strip which appears when this is commented out, but doesn't appear when in.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this