projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
swrast: use _swrast_pixel_address() in more places
[mesa.git]
/
src
/
mesa
/
swrast
/
s_stencil.c
diff --git
a/src/mesa/swrast/s_stencil.c
b/src/mesa/swrast/s_stencil.c
index fb95ef14df3364bb4861b45b16adf4aa24082f93..98af928208c17acb7fdbb4534afdd021ef71585d 100644
(file)
--- a/
src/mesa/swrast/s_stencil.c
+++ b/
src/mesa/swrast/s_stencil.c
@@
-293,7
+293,7
@@
get_s8_values(struct gl_context *ctx, struct gl_renderbuffer *rb,
GLubyte stencil[])
{
const GLint w = rb->Width, h = rb->Height;
- const GLubyte *map =
(const GLubyte *) rb->Data
;
+ const GLubyte *map =
_swrast_pixel_address(rb, 0, 0)
;
GLuint i;
if (rb->Format == MESA_FORMAT_S8) {