mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 11:38:05 +02:00
added st_resize_framebuffer()
This commit is contained in:
parent
ecb41279d6
commit
3d14b2c01e
2 changed files with 17 additions and 0 deletions
|
|
@ -88,3 +88,17 @@ struct st_framebuffer *st_create_framebuffer( const __GLcontextModes *visual )
|
|||
}
|
||||
|
||||
|
||||
void st_resize_framebuffer( struct st_framebuffer *stfb,
|
||||
GLuint width, GLuint height )
|
||||
{
|
||||
if (stfb->Base.Width != width || stfb->Base.Height != height) {
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
if (ctx) {
|
||||
_mesa_resize_framebuffer(ctx, &stfb->Base, width, height);
|
||||
|
||||
assert(stfb->Base.Width == width);
|
||||
assert(stfb->Base.Height == height);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -48,6 +48,9 @@ void st_destroy_context2( struct st_context *st );
|
|||
|
||||
struct st_framebuffer *st_create_framebuffer( const __GLcontextModes *visual );
|
||||
|
||||
void st_resize_framebuffer( struct st_framebuffer *,
|
||||
GLuint width, GLuint height );
|
||||
|
||||
void st_make_current(struct st_context *st,
|
||||
struct st_framebuffer *draw,
|
||||
struct st_framebuffer *read);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue