mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
egl: const display & config pointers in eglGetConfigAttrib()
Signed-off-by: Eric Engestrom <eric@engestrom.ch> Reviewed-by: Marek Olšák <maraeo@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20567>
This commit is contained in:
parent
f83a0e0a14
commit
180e30857c
2 changed files with 3 additions and 3 deletions
|
|
@ -497,7 +497,7 @@ _eglMatchConfig(const _EGLConfig *conf, const _EGLConfig *criteria)
|
|||
}
|
||||
|
||||
static inline EGLBoolean
|
||||
_eglIsConfigAttribValid(_EGLConfig *conf, EGLint attr)
|
||||
_eglIsConfigAttribValid(const _EGLConfig *conf, EGLint attr)
|
||||
{
|
||||
if (_eglOffsetOfConfig(attr) < 0)
|
||||
return EGL_FALSE;
|
||||
|
|
@ -815,7 +815,7 @@ _eglChooseConfig(_EGLDisplay *disp, const EGLint *attrib_list,
|
|||
* Fallback for eglGetConfigAttrib.
|
||||
*/
|
||||
EGLBoolean
|
||||
_eglGetConfigAttrib(_EGLDisplay *disp, _EGLConfig *conf,
|
||||
_eglGetConfigAttrib(const _EGLDisplay *disp, const _EGLConfig *conf,
|
||||
EGLint attribute, EGLint *value)
|
||||
{
|
||||
if (!_eglIsConfigAttribValid(conf, attribute))
|
||||
|
|
|
|||
|
|
@ -227,7 +227,7 @@ _eglChooseConfig(_EGLDisplay *disp, const EGLint *attrib_list, EGLConfig *config
|
|||
|
||||
|
||||
extern EGLBoolean
|
||||
_eglGetConfigAttrib(_EGLDisplay *disp, _EGLConfig *conf, EGLint attribute, EGLint *value);
|
||||
_eglGetConfigAttrib(const _EGLDisplay *disp, const _EGLConfig *conf, EGLint attribute, EGLint *value);
|
||||
|
||||
|
||||
extern EGLBoolean
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue