summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/hgl/hgl.c
diff options
context:
space:
mode:
authorAlexander von Gluck IV <[email protected]>2015-05-14 17:29:00 -0500
committerAlexander von Gluck IV <[email protected]>2015-05-15 13:55:59 -0400
commit9b5da7f06a4052b1298e4684d992a319fb4153ba (patch)
tree5068ea6e0703aa0b5582dc2ae2d89017f67a2a26 /src/gallium/state_trackers/hgl/hgl.c
parent73aef2d1d8a0fe417df1ab4a35029be74891ee37 (diff)
st/hgl: Move st_api creation to st and extern "C" it
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/hgl/hgl.c')
-rw-r--r--src/gallium/state_trackers/hgl/hgl.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/gallium/state_trackers/hgl/hgl.c b/src/gallium/state_trackers/hgl/hgl.c
index 77f7c2256e5..1e804c07e6b 100644
--- a/src/gallium/state_trackers/hgl/hgl.c
+++ b/src/gallium/state_trackers/hgl/hgl.c
@@ -7,8 +7,7 @@
* Alexander von Gluck IV, [email protected]
*/
-
-#include "GLView.h"
+#include "hgl_context.h"
#include <stdio.h>
@@ -17,8 +16,9 @@
#include "util/u_format.h"
#include "util/u_memory.h"
#include "util/u_inlines.h"
+#include "state_tracker/st_gl_api.h" /* for st_gl_api_create */
-#include "hgl_context.h"
+#include "GLView.h"
#ifdef DEBUG
@@ -93,7 +93,7 @@ hgl_st_framebuffer_validate_textures(struct st_framebuffer_iface *stfbi,
for (i = 0; i < ST_ATTACHMENT_COUNT; i++)
pipe_resource_reference(&buffer->textures[i], NULL);
}
-
+
memset(&templat, 0, sizeof(templat));
templat.target = buffer->target;
templat.width0 = width;
@@ -258,6 +258,14 @@ hgl_create_st_framebuffer(struct hgl_context* context)
}
+struct st_api*
+hgl_create_st_api()
+{
+ CALLED();
+ return st_gl_api_create();
+}
+
+
struct st_manager *
hgl_create_st_manager(struct hgl_context* context)
{