diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2005-05-17 13:21:46 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2005-05-17 13:21:46 +0000 |
commit | 5a0cb726d1e8dbd8cdb024d9e45169ad8c440777 (patch) | |
tree | 700891004f4bb9773e49a35ef50f3e04467be64c /src/egl | |
parent | d2ab4eb2c2ed7a36e2e37fa3804c7581ecca81e0 (diff) |
fix pbuffer sample code
Diffstat (limited to 'src/egl')
-rw-r--r-- | src/egl/drivers/demo/demo.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/egl/drivers/demo/demo.c b/src/egl/drivers/demo/demo.c index 5916c88e9e..9b75195959 100644 --- a/src/egl/drivers/demo/demo.c +++ b/src/egl/drivers/demo/demo.c @@ -81,7 +81,7 @@ demoInitialize(_EGLDriver *drv, EGLDisplay dpy, EGLint *major, EGLint *minor) _eglSetConfigAttrib(&config, EGL_STENCIL_SIZE, 8); } _eglSetConfigAttrib(&config, EGL_SURFACE_TYPE, - (EGL_WINDOW_BIT | EGL_PIXMAP_BIT | EGL_PBUFFER_BIT)); + (EGL_WINDOW_BIT | EGL_PIXMAP_BIT | EGL_PBUFFER_BIT)); _eglAddConfig(disp, &config); } @@ -221,17 +221,14 @@ demoCreatePbufferSurface(_EGLDriver *drv, EGLDisplay dpy, EGLConfig config, if (!surf) return EGL_NO_SURFACE; - if (_eglInitPbufferSurface(drv, dpy, config, attrib_list, &surf->Base)) { + if (_eglInitPbufferSurface(&surf->Base, drv, dpy, config, attrib_list) + == EGL_NO_SURFACE) { free(surf); return EGL_NO_SURFACE; } /* a real driver would allocate the pbuffer memory here */ - /* insert into hash table */ - _eglSaveSurface(&surf->Base); - assert(surf->Base.Handle); - return surf->Base.Handle; } |