diff options
author | Brian Paul <[email protected]> | 2012-01-16 12:28:59 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2012-01-24 14:12:28 -0700 |
commit | c45771905f237d9285465dfce955440582ee51e5 (patch) | |
tree | 5bb7c3c99326055d2a3a140f04ed73eb7c869cbc /src | |
parent | 881ef2a9db22cff4c7d07b873d23b0c324da555a (diff) |
swrast: use stencil packing function in s_stencil.c
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/swrast/s_stencil.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/swrast/s_stencil.c b/src/mesa/swrast/s_stencil.c index 005423e836c..9aa7ffc8598 100644 --- 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); } } } |