Page 2 of 2

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

Posted: Thu Sep 22, 2022 11:17 am
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..