summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/es/st_es2.c
diff options
context:
space:
mode:
authorJakob Bornecrantz <[email protected]>2010-04-24 01:05:49 +0100
committerJakob Bornecrantz <[email protected]>2010-04-26 00:40:17 +0100
commit0c572c6828b6a338b07a6860280b3a314a81662e (patch)
tree749dc6f81128f7a1b16953fad240f53108b4f8a4 /src/gallium/state_trackers/es/st_es2.c
parent81ab19de04e623d24cb65ad1ed3b240bce78235b (diff)
st_api: Remove st_module
The struct st_module isn't needed as it is the same thing as the st_api struct. That is they both represent the API. Instead just use a single function entry point to the the API.
Diffstat (limited to 'src/gallium/state_trackers/es/st_es2.c')
-rw-r--r--src/gallium/state_trackers/es/st_es2.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gallium/state_trackers/es/st_es2.c b/src/gallium/state_trackers/es/st_es2.c
index 82e88b176ac..5c773aaf93b 100644
--- a/src/gallium/state_trackers/es/st_es2.c
+++ b/src/gallium/state_trackers/es/st_es2.c
@@ -1,8 +1,8 @@
-#include "state_tracker/st_manager.h"
+#include "state_tracker/st_gl_api.h"
-PUBLIC const int st_api_OpenGL_ES2 = 1;
-
-PUBLIC const struct st_module st_module_OpenGL_ES2 = {
- .api = ST_API_OPENGL_ES2,
- .create_api = st_manager_create_api
-};
+PUBLIC struct st_api *
+st_api_create_OpenGL_ES2()
+{
+ /* linker magic creates different versions */
+ return st_gl_api_create();
+}