How to check if OpenGL is supported?

Pekka Paalanen ppaalanen at gmail.com
Tue Sep 10 03:24:07 PDT 2013


On Tue, 10 Sep 2013 19:57:32 +1000
Campbell Barton <ideasman42 at gmail.com> wrote:

> On Tue, Sep 10, 2013 at 4:58 PM, Pekka Paalanen <ppaalanen at gmail.com>
> wrote:
> > On Tue, 10 Sep 2013 16:49:27 +1000
> > Campbell Barton <ideasman42 at gmail.com> wrote:
> >
> >> Software OpenGL is fine if I can use it to get Blender window up
> >> and running in weston.
> >> I've used Blender with mesa's 'swrast' before on X11 and it runs
> >> fine as long as GLSL isnt used,
> >> so I know this works - but not sure if llvmpipe does. (it should,
> >> we only require OpenGL 1.4x).
> >
> > Oh, ok. The next thing coming to my mind is that you somehow
> > managed to get libGLESv2.so and libEGL.so from Mesa, but libGL.so
> > from the Nvidia proprietary package. That would cause simple-egl
> > and Weston to work, but fail all big GL apps on Wayland.
> >
> > Maybe check that? You'd need libGL.so (and perhaps others?) from
> > Mesa to be able to run big GL apps with software GL on Wayland.
> >
> >
> > Thanks,
> > pq
> 
> Yes, libGL.so, libGL.so.1 are from NVIDIA OpenGL Shared Library
> 325.15

If those are from NVIDIA, full OpenGL *cannot* work on Wayland.

> This is why I'm interested to know are there any good test
> applications that use full OpenGL + weston so I can validate its
> working.

Hmm, fix libGL.so to come from Mesa, and just try Blender again?

Weston's screensaver app and gears are full OpenGL apps, but to try
them, you need Cairo with full-GL support. Nothing else comes to mind.
Some SDL apps maybe, with SDL's Wayland port?

Or you maybe you could convert simple-egl to a full GL app, or replace
its rendering with the stuff from glxgears? IOW, I'm not aware of any
simple test apps for full GL on Wayland (I do not consider dependency
to cairo-gl as "simple").


Thanks,
pq


More information about the wayland-devel mailing list