Jump to content

View more

Image of the Day

The night is still, but the invasion brings chaos. #screenshotsaturday #hanako #indiegame #gameart #ue4 #samurai https://t.co/cgILXuokoS
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Can't seem to display anything

4: Adsense

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   

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.


#2 TooMuchCoffee   Members   

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   

2349
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.