diff options
author | Chia-I Wu <olv@lunarg.com> | 2010-09-10 12:59:43 +0800 |
---|---|---|
committer | Chia-I Wu <olv@lunarg.com> | 2010-09-10 15:44:11 +0800 |
commit | 948e3fa27ca9112b903a180d1a18c61cfb2928dc (patch) | |
tree | 80b9a684a2f12ed60a65757860203d2bff825fad /src/gallium/state_trackers/egl/common/egl_g3d_loader.h | |
parent | 0cd480f07639ec9ee01424aaa3e0c900b2204d4f (diff) |
st/egl: Use profiles to create OpenGL ES contexts.
Replace all uses of ST_API_OPENGL_ES{1,2} by profiles. Having 3
st_api's to provide OpenGL, OpenGL ES 1.1, and OpenGL ES 2.0 is not a
sane abstraction, since all of them share glapi for current
context/dispatch management.
Diffstat (limited to 'src/gallium/state_trackers/egl/common/egl_g3d_loader.h')
-rw-r--r-- | src/gallium/state_trackers/egl/common/egl_g3d_loader.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/egl/common/egl_g3d_loader.h b/src/gallium/state_trackers/egl/common/egl_g3d_loader.h index c9141f8ad4..78bfe2131e 100644 --- a/src/gallium/state_trackers/egl/common/egl_g3d_loader.h +++ b/src/gallium/state_trackers/egl/common/egl_g3d_loader.h @@ -37,9 +37,9 @@ struct pipe_screen; struct sw_winsys; struct egl_g3d_loader { - uint api_mask; + uint profile_masks[ST_API_COUNT]; struct st_api *(*get_st_api)(enum st_api_type api); - struct st_api *(*guess_gl_api)(void); + struct st_api *(*guess_gl_api)(enum st_profile_type profile); struct pipe_screen *(*create_drm_screen)(const char *name, int fd); struct pipe_screen *(*create_sw_screen)(struct sw_winsys *ws); |