projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
881ef2a
)
swrast: use stencil packing function in s_stencil.c
author
Brian Paul
<brianp@vmware.com>
Mon, 16 Jan 2012 19:28:59 +0000
(12:28 -0700)
committer
Brian Paul
<brianp@vmware.com>
Tue, 24 Jan 2012 21:12:28 +0000
(14:12 -0700)
src/mesa/swrast/s_stencil.c
patch
|
blob
|
history
diff --git
a/src/mesa/swrast/s_stencil.c
b/src/mesa/swrast/s_stencil.c
index 005423e836c1bd0f836fb935d041931feda8832f..9aa7ffc85987a7372a51f5deaa73fdaebd36b104 100644
(file)
--- a/
src/mesa/swrast/s_stencil.c
+++ b/
src/mesa/swrast/s_stencil.c
@@
-326,12
+326,14
@@
put_s8_values(struct gl_context *ctx, struct gl_renderbuffer *rb,
const GLubyte stencil[])
{
const GLint w = rb->Width, h = rb->Height;
+ gl_pack_ubyte_stencil_func pack_stencil =
+ _mesa_get_pack_ubyte_stencil_func(rb->Format);
GLuint i;
for (i = 0; i < count; i++) {
if (x[i] >= 0 && y[i] >= 0 && x[i] < w && y[i] < h) {
GLubyte *dst = _swrast_pixel_address(rb, x[i], y[i]);
-
_mesa_pack_ubyte_stencil_row(rb->Format, 1,
&stencil[i], dst);
+
pack_stencil(
&stencil[i], dst);
}
}
}