aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/mesa/state_tracker/st_context.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2012-08-21 07:54:32 +0200
committermarha <marha@users.sourceforge.net>2012-08-21 07:54:32 +0200
commit7cd970786d72a68b735f33904bdded6c8aebdf33 (patch)
treefdfd8b54161aeddb0a2fe485886219b2285d52ff /mesalib/src/mesa/state_tracker/st_context.c
parent5d9b8cf0e4054e774f906cde9dd6b61ceca72d44 (diff)
downloadvcxsrv-7cd970786d72a68b735f33904bdded6c8aebdf33.tar.gz
vcxsrv-7cd970786d72a68b735f33904bdded6c8aebdf33.tar.bz2
vcxsrv-7cd970786d72a68b735f33904bdded6c8aebdf33.zip
xserver xkeyboard-config mesa pixman git update 21 Aug 2012
Diffstat (limited to 'mesalib/src/mesa/state_tracker/st_context.c')
-rw-r--r--mesalib/src/mesa/state_tracker/st_context.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mesalib/src/mesa/state_tracker/st_context.c b/mesalib/src/mesa/state_tracker/st_context.c
index 7735eee4f..2e14da211 100644
--- a/mesalib/src/mesa/state_tracker/st_context.c
+++ b/mesalib/src/mesa/state_tracker/st_context.c
@@ -163,7 +163,10 @@ st_create_context_priv( struct gl_context *ctx, struct pipe_context *pipe )
else
st->internal_target = PIPE_TEXTURE_RECT;
- for (i = 0; i < 3; i++) {
+ /* Vertex element objects used for drawing rectangles for glBitmap,
+ * glDrawPixels, glClear, etc.
+ */
+ for (i = 0; i < Elements(st->velems_util_draw); i++) {
memset(&st->velems_util_draw[i], 0, sizeof(struct pipe_vertex_element));
st->velems_util_draw[i].src_offset = i * 4 * sizeof(float);
st->velems_util_draw[i].instance_divisor = 0;