st/egl: Remove buffer from screen

It is no longer needed since the new drm api code,
	and it incorrectly checked if the buffer where there
	for testing completeness when it should have checked
	the texture instead.
This commit is contained in:
Jakob Bornecrantz 2009-09-22 20:22:13 -07:00
parent eea30906de
commit dd586078be
2 changed files with 3 additions and 5 deletions

View file

@ -152,7 +152,6 @@ drm_takedown_shown_screen(_EGLDisplay *dpy, struct drm_screen *screen)
pipe_surface_reference(&screen->surface, NULL);
pipe_texture_reference(&screen->tex, NULL);
pipe_buffer_reference(&screen->buffer, NULL);
screen->shown = 0;
}
@ -250,8 +249,8 @@ drm_show_screen_surface_mesa(_EGLDriver *drv, _EGLDisplay *dpy,
drm_create_texture(dpy, scrn, mode->Width, mode->Height);
if (!scrn->buffer)
return EGL_FALSE;
if (!scrn->tex)
goto err_tex;
ret = drmModeAddFB(dev->drmFD,
scrn->front.width, scrn->front.height,
@ -325,8 +324,8 @@ err_fb:
err_bo:
pipe_surface_reference(&scrn->surface, NULL);
pipe_texture_reference(&scrn->tex, NULL);
pipe_buffer_reference(&scrn->buffer, NULL);
err_tex:
return EGL_FALSE;
}

View file

@ -94,7 +94,6 @@ struct drm_screen
* pipe
*/
struct pipe_buffer *buffer;
struct pipe_texture *tex;
struct pipe_surface *surface;