Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Don't forget to read Tuesday's email newsletter for your chance to win a free copy of Construct 2!


Can't seem to display anything


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 TooMuchCoffee   Members   -  Reputation: 144

Like
0Likes
Like

Posted 16 August 2014 - 05:21 PM

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, 19 August 2014 - 04:07 PM.


Sponsor:

#2 TooMuchCoffee   Members   -  Reputation: 144

Like
0Likes
Like

Posted 17 August 2014 - 12:12 AM

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.



#3 Xycaleth   Members   -  Reputation: 1221

Like
0Likes
Like

Posted 17 August 2014 - 03:39 AM

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.






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS