Registered Member
|
Hi!
I've made a little program with GLFW and GLEW in Code::Blocks, running perfectly. But if I compile it with cmake (without any errors or warnings), the window does show up but not display anything but the glClear() call (Changing the color with glClearColor() affects the window), but not my glDrawArrays, altough compiled under Code::Blocks it works... I think it is cmake-related, because I have never used it, so here is my CMakeLists.txt:
and I am using FindGLEW.cmake to find GLEW:
GLFW is compiled and installed from source, GLEW via apt-get. I am using Linux Mint 17 KDE. I hope I provided enough information and that you can help me... |
Registered Member
|
Okay I figured it out, I think it was KDE-related:
In my vertex shader, I wrote: ... gl_Position.xy = vertPos_in; ... , ignoring the z and w values of gl_Position. On Linux Mint 16 Cinnamon with CodeBlocks it worked, but not anymore in Linux Mint 17 KDE with KDevelop. Sorry for my stupidness... |
Global Moderator
|
Probably more related to an updated graphics driver then, I'd guess
I'm working on the KDevelop IDE.
|
Registered users: Bing [Bot], daret, Google [Bot], Sogou [Bot]