Advertisement

Crash of the program of tutorial 36

Started by April 29, 2003 02:11 PM
-1 comments, last by madcow 21 years, 10 months ago
Does someone know why maybe tutorial 36 crashes at this point I have found out. void RenderToTexture() // Renders To A Texture { glViewport(0,0,128,128); // Set Our Viewport (Match Texture Size) ProcessHelix(); // Render The Helix glBindTexture(GL_TEXTURE_2D,BlurTexture); // Bind To The Blur Texture // Copy Our ViewPort To The Blur Texture (From 0,0 To 128,128... No Border) This point is the error -> glCopyTexImage2D(GL_TEXTURE_2D, 0, GL_LUMINANCE, 0, 0, 128, 128, 0); glClearColor(0.0f, 0.0f, 0.5f, 0.5); // Set The Clear Color To Medium Blue glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); // Clear The Screen And Depth Buffer glViewport(0 , 0,640 ,480); // Set Viewport (0,0 to 640x480) } [edited by - madcow on April 29, 2003 3:13:04 PM]

This topic is closed to new replies.

Advertisement