st/glx: Fix compilation error
Fix compilation error due to commit "Rework how drawables are invalidated v3" Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
This commit is contained in:
parent
19789e403c
commit
5d2fad5444
|
@ -59,6 +59,7 @@
|
||||||
#include "pipe/p_defines.h"
|
#include "pipe/p_defines.h"
|
||||||
#include "pipe/p_screen.h"
|
#include "pipe/p_screen.h"
|
||||||
#include "pipe/p_context.h"
|
#include "pipe/p_context.h"
|
||||||
|
#include "util/u_atomic.h"
|
||||||
|
|
||||||
#include "xm_public.h"
|
#include "xm_public.h"
|
||||||
#include <GL/glx.h>
|
#include <GL/glx.h>
|
||||||
|
@ -1113,10 +1114,7 @@ XMesaDestroyBuffer(XMesaBuffer b)
|
||||||
void
|
void
|
||||||
xmesa_notify_invalid_buffer(XMesaBuffer b)
|
xmesa_notify_invalid_buffer(XMesaBuffer b)
|
||||||
{
|
{
|
||||||
XMesaContext xmctx = XMesaGetCurrentContext();
|
p_atomic_inc(&b->stfb->stamp);
|
||||||
|
|
||||||
if (xmctx && xmctx->xm_buffer == b)
|
|
||||||
xmctx->st->notify_invalid_framebuffer(xmctx->st, b->stfb);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -30,6 +30,7 @@
|
||||||
#include "xm_st.h"
|
#include "xm_st.h"
|
||||||
|
|
||||||
#include "util/u_inlines.h"
|
#include "util/u_inlines.h"
|
||||||
|
#include "util/u_atomic.h"
|
||||||
|
|
||||||
struct xmesa_st_framebuffer {
|
struct xmesa_st_framebuffer {
|
||||||
XMesaDisplay display;
|
XMesaDisplay display;
|
||||||
|
@ -302,6 +303,7 @@ xmesa_create_st_framebuffer(XMesaDisplay xmdpy, XMesaBuffer b)
|
||||||
stfbi->visual = &xstfb->stvis;
|
stfbi->visual = &xstfb->stvis;
|
||||||
stfbi->flush_front = xmesa_st_framebuffer_flush_front;
|
stfbi->flush_front = xmesa_st_framebuffer_flush_front;
|
||||||
stfbi->validate = xmesa_st_framebuffer_validate;
|
stfbi->validate = xmesa_st_framebuffer_validate;
|
||||||
|
p_atomic_set(&stfbi->stamp, 1);
|
||||||
stfbi->st_manager_private = (void *) xstfb;
|
stfbi->st_manager_private = (void *) xstfb;
|
||||||
|
|
||||||
return stfbi;
|
return stfbi;
|
||||||
|
|
Loading…
Reference in New Issue