st/egl_g3d: Get the stapi from the driver.
egl_g3d_get_st was called because the driver argument was not given before. It can be fixed now.
This commit is contained in:
parent
3e6139d158
commit
28272bc472
|
@ -851,13 +851,12 @@ egl_g3d_wait_native(_EGLDriver *drv, _EGLDisplay *dpy, EGLint engine)
|
||||||
static _EGLProc
|
static _EGLProc
|
||||||
egl_g3d_get_proc_address(_EGLDriver *drv, const char *procname)
|
egl_g3d_get_proc_address(_EGLDriver *drv, const char *procname)
|
||||||
{
|
{
|
||||||
/* FIXME how come _EGLDriver is not passed? */
|
struct egl_g3d_driver *gdrv = egl_g3d_driver(drv);
|
||||||
const struct egl_g3d_st *stapi;
|
|
||||||
_EGLProc proc;
|
_EGLProc proc;
|
||||||
EGLint i;
|
EGLint i;
|
||||||
|
|
||||||
for (i = 0; i < NUM_EGL_G3D_STS; i++) {
|
for (i = 0; i < NUM_EGL_G3D_STS; i++) {
|
||||||
stapi = egl_g3d_get_st(i);
|
const struct egl_g3d_st *stapi = gdrv->stapis[i];
|
||||||
if (stapi) {
|
if (stapi) {
|
||||||
proc = (_EGLProc) stapi->st_get_proc_address(procname);
|
proc = (_EGLProc) stapi->st_get_proc_address(procname);
|
||||||
if (proc)
|
if (proc)
|
||||||
|
|
Loading…
Reference in New Issue