• Advertisement
Sign in to follow this  

Can't seem to display anything

This topic is 1250 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello! I've recently moved my programming environment to a new PC, and the code I was working on before seems to have stopped rendering much of anything. All it seems to render now is a single, white point in the center of the screen. I'm using the Win32 API instead of a windowing library, so it's very possible that I forgot something somewhere in the code (or perhaps my archiving software decided to rollback a .cpp file).

 

[redacted]

Edited by TooMuchCoffee

Share this post


Link to post
Share on other sites
Advertisement

How simple a fix this was...

Apparently, when using commas to separate the elements in the array of strings representing the shader source, the shaders don't actually compile (even though glGetShaderiv(foo) says it does). That was a waste of time.

Share this post


Link to post
Share on other sites

Apparently, when using commas to separate the elements in the array of strings representing the shader source, the shaders don't actually compile (even though glGetShaderiv(foo) says it does). That was a waste of time.

You need to provide the correct count to glShaderSource :) The second argument is the number of elements (strings) you have in your string array.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement