Re: Fixing: libEGL warning: DRI2: failed to authenticate
Posted: Thu Sep 22, 2022 11:17 am
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 :
or just
And in both cases crashes on that crash, throguh i not sure if "this" is correct context there..
We do have in our OGLES2 implementation this function :
So i just tried now and the end of CreateWindow in CIrrDevieSDL.cpp to do :void aglMakeCurrent(void* context);
The context you provide here will be the one on which all gl-functions will
operate on.
Code: Select all
IOGLES2->aglMakeCurrent((void*)this);
Code: Select all
IOGLES2->aglMakeCurrent(this);