diff options
author | Alan Hourihane <[email protected]> | 2009-01-23 16:04:57 +0000 |
---|---|---|
committer | Alan Hourihane <[email protected]> | 2009-01-23 16:06:26 +0000 |
commit | b0d0e53a54ce79f57334942bf0b3762db8a3a7b8 (patch) | |
tree | 4d7d3f6a2b1cbbc6aec52771c5a80767f8148c03 /src/mesa/state_tracker/st_public.h | |
parent | 483c730de8ec00ef140f31bdb40856aef3b6fde6 (diff) |
gallium: change the st_get_framebuffer_surface/texture functions
to return TRUE/FALSE if the st_framebuffer is valid, and if it is
return the surface/texture in the passed pointer.
Diffstat (limited to 'src/mesa/state_tracker/st_public.h')
-rw-r--r-- | src/mesa/state_tracker/st_public.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/state_tracker/st_public.h b/src/mesa/state_tracker/st_public.h index 88995aa8747..2c578f38cc5 100644 --- a/src/mesa/state_tracker/st_public.h +++ b/src/mesa/state_tracker/st_public.h @@ -80,11 +80,11 @@ void st_set_framebuffer_surface(struct st_framebuffer *stfb, void st_get_framebuffer_dimensions( struct st_framebuffer *stfb, uint *width, uint *height); -struct pipe_surface *st_get_framebuffer_surface(struct st_framebuffer *stfb, - uint surfIndex); +int st_get_framebuffer_surface(struct st_framebuffer *stfb, + uint surfIndex, struct pipe_surface **surface); -struct pipe_texture *st_get_framebuffer_texture(struct st_framebuffer *stfb, - uint surfIndex); +int st_get_framebuffer_texture(struct st_framebuffer *stfb, + uint surfIndex, struct pipe_texture **texture); void *st_framebuffer_private( struct st_framebuffer *stfb ); |