Fixing: libEGL warning: DRI2: failed to authenticate

Discussion about everything. New games, 3d math, development tips...
kas1e
Posts: 212
Joined: Sun Jan 21, 2018 8:39 am

Re: Fixing: libEGL warning: DRI2: failed to authenticate

Post by kas1e »

Yeah, SDL create stuff for sure correctly, i even test it with debug version of SDL, it show that all goes well and as expected, just black screen mean that context creation/attaching/etc fail.

We do have in our OGLES2 implementation this function :
void aglMakeCurrent(void* context);

The context you provide here will be the one on which all gl-functions will
operate on.
So i just tried now and the end of CreateWindow in CIrrDevieSDL.cpp to do :

Code: Select all

IOGLES2->aglMakeCurrent((void*)this);
or just

Code: Select all

IOGLES2->aglMakeCurrent(this);
And in both cases crashes on that crash, throguh i not sure if "this" is correct context there..
Post Reply