Skip to main content
GameDev.net gamedev.net
🔒 Locked

glUniform*fv

Started by GearTreeEntertaiment Mar 17, 2016 at 11:19 PM 1 replies 2.5k views
Original Post
GearTreeEntertaiment
GearTreeEntertaiment
So I have been try to send some data to my gpu using glUniform3fv and glUniformMatrix4x4fv. I have been spending some time wondering why they would not send, and I have found to issue. glUniform3f works, but not its glUniform3fv counter part. I am not sending a bad pointer, or data, because the data outputs fine right before sending.

So my question is, is there any reason any of you might know to why the fv versions do not work?

I used these same headers and libs in another project, and the functions worked just fine.
~GTE
TheChubu
TheChubu

You should post the related code.

"I AM ZE EMPRAH OPENGL 3.3 THE CORE, I DEMAND FROM THEE ZE SHADERZ AND MATRIXEZ"   My journals: dustArtemis ECS framework and 
vstrakh
vstrakh




glUniform3f works, but not its glUniform3fv counter part

I'm using only glUniform*fv calls, there's nothing wrong with them.




I am not sending a bad pointer, or data, because the data outputs fine right before sending.

It might be that your stack/memory already damaged, but the exact moment it will manifest is after your debug outputs, when user-space part of opengl api writes something to stack/memory.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.