<div dir="ltr">
<pre>From 5e91f6e5585c0d8db4183fb15f77a484b397044c Mon Sep 17 00:00:00 2001
From: kenmays <<a href="mailto:maybird1776@yahoo.com" target="_blank">maybird1776@yahoo.com</a>>
Date: Fri, 20 Sep 2019 19:06:42 +0000
Subject: [PATCH] hgl.c: Haiku hgl_st_framebuffer build fix
<br>diff --git a/src/gallium/state_trackers/hgl/hgl.c.older b/src/gallium/state_trackers/hgl/hgl.c
index bbc477a..2294538 100644
--- a/src/gallium/state_trackers/hgl/hgl.c.older
+++ b/src/gallium/state_trackers/hgl/hgl.c
@@ -44,7 +44,8 @@ hgl_st_context(struct st_context_iface *stctxi)
// Perform a safe void to hgl_buffer cast
-static inline struct hgl_buffer*
+//static inline struct hgl_buffer*
+struct hgl_buffer*
hgl_st_framebuffer(struct st_framebuffer_iface *stfbi)
{
struct hgl_buffer* buffer;
@@ -62,8 +63,10 @@ hgl_st_framebuffer_flush_front(struct st_context_iface *stctxi,
CALLED();
//struct hgl_context* context = hgl_st_context(stctxi);
- //struct hgl_buffer* buffer = hgl_st_context(stfbi);
-
+ // struct hgl_buffer* buffer = hgl_st_context(stfbi);
+ struct hgl_buffer* buffer = hgl_st_framebuffer(stfbi);
+ //buffer->surface
+
#if 0
struct stw_st_framebuffer *stwfb = stw_st_framebuffer(stfb);
mtx_lock(&stwfb->fb->mutex);
@@ -281,7 +284,8 @@ hgl_create_st_manager(struct hgl_context* context)
//manager->display = dpy;
manager->screen = context->screen;
manager->get_param = hgl_st_manager_get_param;
-
+ manager->st_manager_private = (void *)context;
+
return manager;
}
</pre>
</div>