Jump to content
  • Advertisement
Sign in to follow this  

GLUT permission denied

This topic is 4091 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello, I need to run a GLUT app on a linux machine that is unfortunately not mine. Permission to /dev/nvidiactl is denied, so I guess I cant get hardware acceleration. Changing this is most likely not possible... However, while my GLUT program does start and the display function is called, nothing is drawn (only pixel garbage shown in the window). Here is a minimal example, just in case:
#include <stdio.h>
#include <GL/glut.h>

void display(void)




int main(int argc, char * argv[])

  glutInit(&argc, argv);
  glutInitDisplayMode(GLUT_RGBA | GLUT_SINGLE);

  glutInitWindowSize(640, 480);
  glutInitWindowPosition(200, 100);


  glClearColor(0.0, 0.0, 0.0, 0.0);


  return 0;

The questions are: - Can my program somehow detect this problem? - Can I switch to software rendering (I thought Open GL supported that kind of fallback strategy...)? My rendering isnt too complex and I dont need high frame rates, so this could be okay. Any suggestions? :)

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!