[Mesa-dev] [PATCH 1/3] egl: add EGL_NV_post_sub_buffer

Ian Romanick idr at freedesktop.org
Fri Dec 16 15:19:07 PST 2011


On 12/14/2011 11:16 PM, Chia-I Wu wrote:
> On Thu, Dec 15, 2011 at 5:21 AM, Ian Romanick<idr at freedesktop.org>  wrote:
>> On 12/14/2011 12:24 PM, Fredrik Höglund wrote:
>>>
>>> diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c
>>> index 3cb1a5b..ff15476 100644
>>> --- a/src/egl/main/eglapi.c
>>> +++ b/src/egl/main/eglapi.c
>>> @@ -951,6 +951,9 @@ eglGetProcAddress(const char *procname)
>>>   #ifdef EGL_ANDROID_swap_rectangle
>>>         { "eglSetSwapRectangleANDROID", (_EGLProc)
>>> eglSetSwapRectangleANDROID },
>>>   #endif
>>> +#ifdef EGL_NV_post_sub_buffer
>>
>>
>> It seems weird that we define this in our own header file, then check to see
>> if it's defined.  I understand that the new code is just following the
>> pattern of the existing code.  Perhaps Kristian or Chia-I can shed some
>> light on this convention.
> The convention was established before I started working on EGL.  I
> agree with you that those checks are unnecessary (and ugly..).  I will
> remove them in a separate patch, if no one objects.

I would support that.


More information about the mesa-dev mailing list