[Mesa-dev] [PATCH] egl/main: Fix eglMakeCurrent when releasing context from current thread.

2014-03-20 Thread Beren Minor
EGL 1.4 Specification says that eglMakeCurrent(display, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT) can be used to release the current thread's ownership on the surfaces and context. MESA's egl implementation was only accepting the parameters when the KHR_surfaceless_context extension is suppo

Re: [Mesa-dev] [PATCH] egl: Fix eglMakeCurrent behaviour when used with EGL_NO_SURFACE and EGL_NO_CONTEXT.

2014-03-17 Thread Beren Minor
It's probably enough, indeed. (With "ctx != EGL_NO_CONTEXT &&" instead of "ctx &&") -- Beren Minor On Mon, Mar 17, 2014 at 3:30 AM, Chia-I Wu wrote: > On Sun, Mar 16, 2014 at 5:20 AM, Beren Minor > wrote: > > EGL 1.4 Specification

[Mesa-dev] [PATCH] egl: Fix eglMakeCurrent behaviour when used with EGL_NO_SURFACE and EGL_NO_CONTEXT.

2014-03-16 Thread Beren Minor
EGL 1.4 Specification says that eglMakeCurrent(display, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT) can be used to release the current thread's ownership on the surfaces and context. MESA's egl implementation was only accepting the parameters when the KHR_surfaceless_context extension is sup

[Mesa-dev] [PATCH] [EGL/GLX driver] Try first a default lookup for glXGetProcAddress before loading dynamic lib.

2011-11-25 Thread Beren Minor
GLX functions are sometimes directly available in the current binary. In such cases, we do not need any alternate library loaded using dlopen. Otherwise, dlopen may find the wrong libGL library and get functions that conflicts with the current loaded ones. For example, on Debian Sid with nvidia bi

[Mesa-dev] [PATCH] egl/glx driver: Try first a default lookup for glXGetProcAddress before loading dynamic lib.

2011-11-25 Thread Beren Minor
GLX functions are sometimes directly available in the current binary. In such cases, we do not need any alternate library loaded using dlopen. Otherwise, dlopen may find the wrong libGL library and get functions that conflicts with the current loaded ones. For example, on Debian Sid with nvidia bi