comp.lang.ada
 help / color / mirror / Atom feed
From: "G.B." <bauhaus@futureapps.invalid>
Subject: Re: OpenGL gl.getstring produces erroneous memory access under GLOBE_3D on Mac
Date: Mon, 26 Sep 2016 11:31:45 +0200
Date: 2016-09-26T11:31:45+02:00	[thread overview]
Message-ID: <nsaptp$5nj$1@dont-email.me> (raw)
In-Reply-To: <lyeg475dt8.fsf@pushface.org>

On 26.09.16 09:18, Simon Wright wrote:
> Roger <rogermc@grapevine.com.au> writes:
>
>> Mac OSX 10.11.6
>> XCode 8.0
>> GNAT GPL 2016 (20160515-49)
>> globe_3d_release_2016-07-05
>
>> However, I have just tried to "Checking for OpenGL functionality" as
>> described in Apple's OpenGL Programming Guide for Mac.  However,
>> gl.GetString(GL.VENDOR) and other calls to gl.GetString result in:
>> raised CONSTRAINT_ERROR : erroneous memory access
>>
>> even if gl.GetString(GL.VENDOR) is in the only instruction in the
>> program.
>
> Same here.
>
> Running under gdb I get
>
> Program received signal SIGSEGV, Segmentation fault.

> so I think you've come across a bug in Apple's libGL.
>


Similarly, a minimal C program produces Segmentation fault: 11.
However, some SO hints seem to say that for glGetString to work,
a context needs to have been created. I don't know what that means.


-- 
"HOTDOGS ARE NOT BOOKMARKS"
Springfield Elementary teaching staff


  reply	other threads:[~2016-09-26  9:31 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-26  4:10 OpenGL gl.getstring produces erroneous memory access under GLOBE_3D on Mac Roger
2016-09-26  7:18 ` Simon Wright
2016-09-26  9:31   ` G.B. [this message]
2016-09-26 10:15 ` gautier_niouzes
2016-09-26 10:21   ` Aurele
2016-09-27  2:42   ` Roger
2016-09-27  3:03   ` Roger
2016-09-27 15:57 ` Roger
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox