tavli
diff src/object.cc @ 16:d6209903454b
opengl capabilities
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 28 Jun 2015 08:48:25 +0300 |
parents | b1a195c3ee16 |
children | 37dead56f01e |
line diff
1.1 --- a/src/object.cc Sun Jun 28 08:34:24 2015 +0300 1.2 +++ b/src/object.cc Sun Jun 28 08:48:25 2015 +0300 1.3 @@ -69,7 +69,9 @@ 1.4 1.5 void Object::set_shader(unsigned int sdr) 1.6 { 1.7 - this->sdr = sdr; 1.8 + if(GLEW_ARB_vertex_shader && GLEW_ARB_fragment_shader) { 1.9 + this->sdr = sdr; 1.10 + } 1.11 } 1.12 1.13 void Object::draw() const