~ubuntu-branches/ubuntu/quantal/mesa/quantal

« back to all changes in this revision

Viewing changes to src/mesa/swrast/s_imaging.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2007-02-21 12:44:07 UTC
  • mfrom: (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 22.
  • Revision ID: james.westby@ubuntu.com-20070221124407-rgcacs32mycrtadl
ImportĀ upstreamĀ versionĀ 6.5.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
 
55
55
   /* read the data from framebuffer */
56
56
   _swrast_read_rgba_span( ctx, ctx->ReadBuffer->_ColorReadBuffer,
57
 
                           width, x, y, data );
 
57
                           width, x, y, CHAN_TYPE, data );
58
58
 
59
59
   RENDER_FINISH(swrast,ctx);
60
60
 
89
89
 
90
90
   /* read the data from framebuffer */
91
91
   _swrast_read_rgba_span( ctx, ctx->ReadBuffer->_ColorReadBuffer,
92
 
                           width, x, y, data );
 
92
                           width, x, y, CHAN_TYPE, data );
93
93
 
94
94
   RENDER_FINISH(swrast,ctx);
95
95
 
122
122
 
123
123
   /* read the data from framebuffer */
124
124
   _swrast_read_rgba_span( ctx, ctx->ReadBuffer->_ColorReadBuffer,
125
 
                           width, x, y, (GLchan (*)[4]) rgba );
 
125
                           width, x, y, CHAN_TYPE, rgba );
126
126
   
127
127
   RENDER_FINISH( swrast, ctx );
128
128
 
160
160
   /* read pixels from framebuffer */
161
161
   for (i = 0; i < height; i++) {
162
162
      _swrast_read_rgba_span( ctx, ctx->ReadBuffer->_ColorReadBuffer,
163
 
                              width, x, y + i, (GLchan (*)[4]) rgba[i] );
 
163
                              width, x, y + i, CHAN_TYPE, rgba[i] );
164
164
   }
165
165
 
166
166
   RENDER_FINISH(swrast,ctx);