diff options
author | José Fonseca <[email protected]> | 2009-05-30 12:41:14 -0700 |
---|---|---|
committer | José Fonseca <[email protected]> | 2009-05-30 20:29:02 -0700 |
commit | 8aef306c342a973f31b384a71d7a22ade9153a99 (patch) | |
tree | a92df8f89639a3c4e30aab824809b20ffe100f34 /src/mesa/state_tracker/st_public.h | |
parent | 29c6c8eb18ace95b9af6dcf34e02c2b8db0ffda8 (diff) |
mesa: Check/propagate return value on st_make_current.
Prevents segmentation fault when trying to set the viewport/scissor
after a context/drawable visual mismatch.
Diffstat (limited to 'src/mesa/state_tracker/st_public.h')
-rw-r--r-- | src/mesa/state_tracker/st_public.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/state_tracker/st_public.h b/src/mesa/state_tracker/st_public.h index 290b8a974e6..c411687bb64 100644 --- a/src/mesa/state_tracker/st_public.h +++ b/src/mesa/state_tracker/st_public.h @@ -91,9 +91,9 @@ void *st_framebuffer_private( struct st_framebuffer *stfb ); void st_unreference_framebuffer( struct st_framebuffer *stfb ); -void st_make_current(struct st_context *st, - struct st_framebuffer *draw, - struct st_framebuffer *read); +GLboolean st_make_current(struct st_context *st, + struct st_framebuffer *draw, + struct st_framebuffer *read); struct st_context *st_get_current(void); |