URL:
<http://savannah.gnu.org/bugs/?34433>
Summary: NSOpenGLPixelFormatAttribute completely broken
Project: GNUstep
Submitted by: julian_
Submitted on: Do 29 Sep 2011 13:01:13 GMT
Category: Gui/AppKit
Severity: 3 - Normal
Item Group: Bug
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
any usage of NSOpenGLPixelFormatAttribute is completely broken and leads to
segfaults. just add this to any executed code of a gnustep app:
NSOpenGLPixelFormatAttribute attribs[] = {
NSOpenGLPFAColorSize, (NSOpenGLPixelFormatAttribute) 24,
NSOpenGLPFADepthSize, (NSOpenGLPixelFormatAttribute) 24,
NSOpenGLPFAWindow,
(NSOpenGLPixelFormatAttribute) 0 };
NSOpenGLPixelFormat *pixelFormat = [[NSOpenGLPixelFormat alloc]
initWithAttributes:attribs];
the requested attributes are irrelevant, it will always lead to a segfault
here:
Program received signal SIGSEGV, Segmentation fault.
0x01333db4 in -[XGGLPixelFormat initWithAttributes:] (self=0x8570370,
_cmd=0x8050660, attribs=0xbfffd830) at XGGLFormat.m:344
344 visualinfo = glXGetVisualFromFBConfig(display,fbconfig[0]);
at least thats the case on ubuntu 11.04, either on actual hardware with
working opengl or even just in a vmware virtual machine. true for a-few-months
old gnustep as well as for SVN trunk as of yesterday.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?34433>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-gnustep