LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-02-2010, 11:17 AM   #1
10110111
Member
 
Registered: Jun 2008
Location: St.-Petersburg, Russia
Distribution: (B)LFS, Ubuntu, SliTaz
Posts: 403

Rep: Reputation: 51
GLUT_ACCUM with Mesa 7.2 on Ubuntu 8.10


I tried to compile a program from RedBook which uses accumulation buffer for FSAA. Whenever GLUT_ACCUM is present in glutInitDisplayMode argument, i get this error:
Code:
freeglut (./saa):  ERROR:  Internal error <Visual with necessary capabilities not found> in function fgOpenWindow
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  4 (X_DestroyWindow)
  Resource id in failed request:  0x0
  Serial number of failed request:  24
  Current serial number in output stream:  24
glxinfo says this about GLX visuals:
Code:
3 GLX Visuals
   visual  x  bf lv rg d st colorbuffer ax dp st accumbuffer  ms  cav
 id dep cl sp sz l  ci b ro  r  g  b  a bf th cl  r  g  b  a ns b eat
----------------------------------------------------------------------
0x21 24 tc  0 32  0 r  y  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
0x22 24 dc  0 32  0 r  y  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
0x52 32 tc  0 32  0 r  .  .  8  8  8  8  0  0  0  0  0  0  0  0 0 None
I.e., all accumulation buffers have zero-bit components. Why is this? How can i fix this (without need to upgrade Ubuntu)? I tried to enable software rendering (which is more complete in the sense of OpenGL version), but nothing changed.

On a machine with nvidia card&drivers everything works...
 
Old 03-29-2010, 09:05 PM   #2
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 10,006

Rep: Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191
Quote:
On a machine with nvidia card&drivers everything works...
So what is on this machine?

Also, what arguments are you passing to glutInitDisplayMode?
 
Old 03-30-2010, 11:02 AM   #3
10110111
Member
 
Registered: Jun 2008
Location: St.-Petersburg, Russia
Distribution: (B)LFS, Ubuntu, SliTaz
Posts: 403

Original Poster
Rep: Reputation: 51
Quote:
Also, what arguments are you passing to glutInitDisplayMode?
Here's how i call it:
Code:
glutInitDisplayMode (GLUT_DOUBLE | GLUT_RGB | GLUT_ACCUM | GLUT_DEPTH);
Anyway, things do work on Mesa 7.7, so i have copied my Xorg 7.5 with Mesa 7.7 installation from LFS system to Ubuntu 8.10, it does work (though some kernel config changes were needed such as KMS).

So, i consider this problem a bug of Mesa 7.2 and it is fixed at least in Mesa 7.7.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Mesa 7.6 Gets Pulled Into Ubuntu 9.10 LXer Syndicated Linux News 0 10-08-2009 10:40 AM
LXer: Intel X.Org, Mesa Performance In Ubuntu LXer Syndicated Linux News 0 11-14-2008 12:00 PM
LXer: Intel X.Org, Mesa Performance In Ubuntu LXer Syndicated Linux News 0 11-14-2008 06:20 AM
LXer: X.Org 7.4, Mesa 7.1 In Ubuntu 8.10 LXer Syndicated Linux News 0 07-12-2008 08:42 PM
Installing Mesa & Mesa-demos... bozotix Linux - Software 2 05-09-2002 12:55 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration