OpenGL on Wayland

Jason Ekstrand jason at jlekstrand.net
Fri Jun 27 13:13:51 PDT 2014


On Fri, Jun 27, 2014 at 12:54 PM, Kalrish Bäakjen <kalrish.antrax at gmail.com>
wrote:

> Hello again,
>
> I've catched the mouse. As my graphics card is on the r200 driver, which
> supports OpenGL 1.3 or 1.4, I used the LLVMpipe driver for my project,
> because it supported much modern versions. However, software EGL/libGL does
> not support the EGL_KHR_create_context extension, warning:
>
> libEGL debug: bad context attribute 0x30fd *(EGL_CONTEXT_MINOR_VERSION,
>> which had been set to 3 to get OpenGL 3.3)*
>
>
> With the OpenGL module I have just written, if I omit the minor version
> flag to make EGL accept it, I am getting an OpenGL ES 3 context. AFAIK,
> LLVMpipe supports 3.3, but how can such a context be created?
>

Make sure you are calling eglBindAPI(EGL_OPENGL_API) as opposed to
eglBindAPI(EGL_OPENGL_ES_API).  There is no OpenGL ES 3.3.
--Jason


>
> Thanks again,
> Kalrish
>
>
> On Fri, Jun 27, 2014 at 9:26 PM, Kalrish Bäakjen <kalrish.antrax at gmail.com
> > wrote:
>
>> On Fri, Jun 27, 2014 at 9:15 PM, Jason Ekstrand <jason at jlekstrand.net>
>> wrote:
>>
>>> The issue everyone talks about is that libGL also contains a GLX
>>> implementation so it links against Xlib.  This will create a link-time
>>> dependency on Xlib.  However, since your application will not be making any
>>> GLX calls, those code-paths will never get exercised and it will gave no
>>> runtime dependency on having an X server.  Really, this is a packaging
>>> problem far more than it is a programming problem.
>>>
>> Oh... Sorry for the noise, then. I will look at it again, and reply with
>> my results later.
>>
>> I suspect I didn't load some function with eglGetProcAddress(). If, as
>> mentioned in the slides, libGL exposes 1.4, it could well be the problem.
>>
>
>
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-devel/attachments/20140627/15e0cd30/attachment.html>


More information about the wayland-devel mailing list