2
* Copyright © 2004 David Reveman
4
* Permission to use, copy, modify, distribute, and sell this software
5
* and its documentation for any purpose is hereby granted without
6
* fee, provided that the above copyright notice appear in all copies
7
* and that both that copyright notice and this permission notice
8
* appear in supporting documentation, and that the name of
9
* David Reveman not be used in advertising or publicity pertaining to
10
* distribution of the software without specific, written prior permission.
11
* David Reveman makes no representations about the suitability of this
12
* software for any purpose. It is provided "as is" without express or
15
* DAVID REVEMAN DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
16
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN
17
* NO EVENT SHALL DAVID REVEMAN BE LIABLE FOR ANY SPECIAL, INDIRECT OR
18
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
19
* OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
20
* NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
21
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
23
* Author: David Reveman <davidr@novell.com>
27
# include "../config.h"
30
#include "glitz_eglint.h"
33
glitz_egl_pbuffer_create (glitz_egl_screen_info_t *screen_info,
41
attributes[0] = EGL_WIDTH;
42
attributes[1] = width;
44
attributes[2] = EGL_HEIGHT;
45
attributes[3] = height;
48
attributes[4] = EGL_LARGEST_PBUFFER;
51
attributes[6] = EGL_PRESERVED_CONTENTS;
57
eglCreatePbufferSurface (screen_info->display_info->egl_display,
58
egl_config, attributes);
60
return (EGLSurface) 0;
64
glitz_egl_pbuffer_destroy (glitz_egl_screen_info_t *screen_info,
65
EGLSurface egl_pbuffer)
67
eglDestroySurface (screen_info->display_info->egl_display,