Hi all! I have opengl multi-sampling not working under linux-64.
I have tried set up msaa using gl-config and gl-enable as it desribed in manual, but that failed. After that I checked msaa in c+glut and found it works, then I installed racket win32 under wine and found it works too. So may it be some bug in implementation? If it is important, I use intel hd graphics. .rkt and .c files attached. -- Best regards, Yuri
gl.rkt
Description: application/wine-extension-rkt
#include <GL/gl.h> #include <GL/glut.h> #include <GL/glu.h> #include <stdio.h> float rotation_angle=0; int msaa=1; void reshape(int width, int height) { glViewport(0, 0, width, height); } void mouse(int button, int state, int x, int y) { if (state==GLUT_DOWN) { msaa = !msaa; glutPostRedisplay(); } } void display() { int err=0; glClear(GL_COLOR_BUFFER_BIT); glMatrixMode(GL_PROJECTION); glLoadIdentity(); glOrtho(-1,1,-1,1,-1,1); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); glRotatef(rotation_angle, 0,0,1); glColor4f(1,0,0,1); if (msaa) { glEnable(GL_MULTISAMPLE_ARB); printf("msaa on\n"); } else { printf("msaa off\n"); glDisable(GL_MULTISAMPLE_ARB); } glRectf(-.5,-.5,.5,.5); glutSwapBuffers(); err = glGetError(); if (err) fprintf(stderr, "%d\n", err); } int main (int argc, char** argv) { glutInit(&argc, argv); glutInitDisplayMode( GLUT_RGBA | GLUT_DOUBLE | GLUT_MULTISAMPLE); glutCreateWindow(argv[0]); glutDisplayFunc(display); glutMouseFunc(mouse); glutReshapeFunc(reshape); glutReshapeWindow(400,400); printf("%s\n",glGetString(GL_RENDERER)); rotation_angle=30; glutMainLoop(); return 0; }
____________________ Racket Users list: http://lists.racket-lang.org/users