Add SetBuffer to egl driver too
This commit is contained in:
@@ -316,7 +316,7 @@ fbDestroyScreen( __DRIscreenPrivate *sPriv )
|
||||
{
|
||||
}
|
||||
|
||||
static void fbSetBuffer( GLcontext *ctx,
|
||||
void fbSetBuffer( GLcontext *ctx,
|
||||
GLframebuffer *colorBuffer,
|
||||
GLuint bufferBit )
|
||||
{
|
||||
|
||||
@@ -37,6 +37,8 @@
|
||||
|
||||
extern void
|
||||
fbSetSpanFunctions(driRenderbuffer *drb, const GLvisual *vis);
|
||||
extern void
|
||||
fbSetBuffer( GLcontext *ctx, GLframebuffer *colorBuffer, GLuint bufferBit);
|
||||
|
||||
/**
|
||||
* fb driver-specific driver class derived from _EGLDriver
|
||||
@@ -485,6 +487,7 @@ fbCreateContext(_EGLDriver *drv, EGLDisplay dpy, EGLConfig config, EGLContext sh
|
||||
{
|
||||
struct swrast_device_driver *swdd;
|
||||
swdd = _swrast_GetDeviceDriverReference( ctx );
|
||||
swdd->SetBuffer = fbSetBuffer;
|
||||
}
|
||||
|
||||
/* use default TCL pipeline */
|
||||
|
||||
Reference in New Issue
Block a user