Tell me more ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I want to use GLSL but keep my current OpenGL 1.1 setup. The thing is that can I use OpenGL 2.0 shaders on OpenGL 1.1 renders?

share|improve this question
What do you mean by your "OpenGL 1.1 setup"? What parts of it do you want to keep? – Nicol Bolas Feb 9 at 11:17

1 Answer

If you are using OpenGL ES, no you can't, if you setup an opengl 1.1 context, all shaders & opengl 2.0 calls will fail. You must convert your setup to opengl 2.0. You can keep compatible function calls like glTexImage..., glDraw...etc. But all fixed functions like glTranslate, glMatrixMode(), etc... must be converted to your own matrix calculation mechanism.

share|improve this answer
2  
None of that is true; with "classic" (i.e. pre-3.x) GL you get all the functionality of whatever GL_VERSION is reported by your driver; there's no such thing as "set up a 1.1 context", and GL2.0 still retains e.g. the old matrix stacks. – Jimmy Shelter Feb 9 at 13:18
1  
I think you got confused with OpenGL ES. Otherwise, this answer is completely wrong and doesn't make much sense. As mentioned, there's no such thing as a GL 1.1 context. – 5ound Feb 9 at 20:31
Yes indeed, I was talking about OpenGL ES, sorry if I confused you i should have specified it. What I said stand for both iOS and Android as far as I know...I updated my post – AkademiksQc Feb 10 at 1:04

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.