1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
|
/* Copyright (c) 2001, Stanford University
* All rights reserved
*
* See the file LICENSE.txt for information on redistributing this software.
*/
#include "unpacker.h"
#include "cr_error.h"
#include "cr_protocol.h"
#include "cr_mem.h"
#include "cr_version.h"
#if defined( GL_EXT_texture3D )
void crUnpackTexImage3DEXT( void )
{
GLenum target = READ_DATA( sizeof( int ) + 0, GLenum );
GLint level = READ_DATA( sizeof( int ) + 4, GLint );
GLenum internalformat = READ_DATA( sizeof( int ) + 8, GLint );
GLsizei width = READ_DATA( sizeof( int ) + 12, GLsizei );
GLsizei height = READ_DATA( sizeof( int ) + 16, GLsizei );
GLsizei depth = READ_DATA( sizeof( int ) + 20, GLsizei );
GLint border = READ_DATA( sizeof( int ) + 24, GLint );
GLenum format = READ_DATA( sizeof( int ) + 28, GLenum );
GLenum type = READ_DATA( sizeof( int ) + 32, GLenum );
int noimagedata = READ_DATA( sizeof( int ) + 36, int );
GLvoid *pixels;
/*If there's no imagedata send, it's either that passed pointer was NULL or
there was GL_PIXEL_UNPACK_BUFFER_ARB bound, in both cases 4bytes of passed
pointer would convert to either NULL or offset in the bound buffer.
*/
if ( noimagedata )
pixels = (void*) (uintptr_t) READ_DATA(sizeof(int)+40, GLint);
else
pixels = DATA_POINTER( sizeof( int ) + 44, GLvoid );
cr_unpackDispatch.TexImage3DEXT(target, level, internalformat, width,
height, depth, border, format, type,
pixels);
INCR_VAR_PTR();
}
#endif /* GL_EXT_texture3D */
#if defined( CR_OPENGL_VERSION_1_2 )
void crUnpackTexImage3D( void )
{
GLenum target = READ_DATA( sizeof( int ) + 0, GLenum );
GLint level = READ_DATA( sizeof( int ) + 4, GLint );
GLint internalformat = READ_DATA( sizeof( int ) + 8, GLint );
GLsizei width = READ_DATA( sizeof( int ) + 12, GLsizei );
GLsizei height = READ_DATA( sizeof( int ) + 16, GLsizei );
GLsizei depth = READ_DATA( sizeof( int ) + 20, GLsizei );
GLint border = READ_DATA( sizeof( int ) + 24, GLint );
GLenum format = READ_DATA( sizeof( int ) + 28, GLenum );
GLenum type = READ_DATA( sizeof( int ) + 32, GLenum );
int noimagedata = READ_DATA( sizeof( int ) + 36, int );
GLvoid *pixels;
if ( noimagedata )
pixels = (void*) (uintptr_t) READ_DATA(sizeof(int)+40, GLint);
else
pixels = DATA_POINTER( sizeof( int ) + 44, GLvoid );
cr_unpackDispatch.TexImage3D( target, level, internalformat, width, height,
depth, border, format, type, pixels );
INCR_VAR_PTR();
}
#endif /* CR_OPENGL_VERSION_1_2 */
void crUnpackTexImage2D( void )
{
GLenum target = READ_DATA( sizeof( int ) + 0, GLenum );
GLint level = READ_DATA( sizeof( int ) + 4, GLint );
GLint internalformat = READ_DATA( sizeof( int ) + 8, GLint );
GLsizei width = READ_DATA( sizeof( int ) + 12, GLsizei );
GLsizei height = READ_DATA( sizeof( int ) + 16, GLsizei );
GLint border = READ_DATA( sizeof( int ) + 20, GLint );
GLenum format = READ_DATA( sizeof( int ) + 24, GLenum );
GLenum type = READ_DATA( sizeof( int ) + 28, GLenum );
int noimagedata = READ_DATA( sizeof( int ) + 32, int );
GLvoid *pixels;
if ( noimagedata )
pixels = (void*) (uintptr_t) READ_DATA(sizeof(int)+36, GLint);
else
pixels = DATA_POINTER( sizeof( int ) + 40, GLvoid );
cr_unpackDispatch.TexImage2D( target, level, internalformat, width, height,
border, format, type, pixels );
INCR_VAR_PTR();
}
void crUnpackTexImage1D( void )
{
GLenum target = READ_DATA( sizeof( int ) + 0, GLenum );
GLint level = READ_DATA( sizeof( int ) + 4, GLint );
GLint internalformat = READ_DATA( sizeof( int ) + 8, GLint );
GLsizei width = READ_DATA( sizeof( int ) + 12, GLsizei );
GLint border = READ_DATA( sizeof( int ) + 16, GLint );
GLenum format = READ_DATA( sizeof( int ) + 20, GLenum );
GLenum type = READ_DATA( sizeof( int ) + 24, GLenum );
int noimagedata = READ_DATA( sizeof( int ) + 28, int );
GLvoid *pixels;
if ( noimagedata )
pixels = (void*) (uintptr_t) READ_DATA(sizeof(int)+32, GLint);
else
pixels = DATA_POINTER( sizeof( int ) + 36, GLvoid );
cr_unpackDispatch.TexImage1D( target, level, internalformat, width, border,
format, type, pixels );
INCR_VAR_PTR();
}
void crUnpackDeleteTextures( void )
{
GLsizei n = READ_DATA( sizeof( int ) + 0, GLsizei );
GLuint *textures = DATA_POINTER( sizeof( int ) + 4, GLuint );
cr_unpackDispatch.DeleteTextures( n, textures );
INCR_VAR_PTR();
}
void crUnpackPrioritizeTextures( void )
{
GLsizei n = READ_DATA( sizeof( int ) + 0, GLsizei );
GLuint *textures = DATA_POINTER( sizeof( int ) + 4, GLuint );
GLclampf *priorities = DATA_POINTER( sizeof( int ) + 4 + n*sizeof( GLuint ),
GLclampf );
cr_unpackDispatch.PrioritizeTextures( n, textures, priorities );
INCR_VAR_PTR();
}
void crUnpackTexParameterfv( void )
{
GLenum target = READ_DATA( sizeof( int ) + 0, GLenum );
GLenum pname = READ_DATA( sizeof( int ) + 4, GLenum );
GLfloat *params = DATA_POINTER( sizeof( int ) + 8, GLfloat );
cr_unpackDispatch.TexParameterfv( target, pname, params );
INCR_VAR_PTR();
}
void crUnpackTexParameteriv( void )
{
GLenum target = READ_DATA( sizeof( int ) + 0, GLenum );
GLenum pname = READ_DATA( sizeof( int ) + 4, GLenum );
GLint *params = DATA_POINTER( sizeof( int ) + 8, GLint );
cr_unpackDispatch.TexParameteriv( target, pname, params );
INCR_VAR_PTR();
}
void crUnpackTexParameterf( void )
{
GLenum target = READ_DATA( sizeof( int ) + 0, GLenum );
GLenum pname = READ_DATA( sizeof( int ) + 4, GLenum );
GLfloat param = READ_DATA( sizeof( int ) + 8, GLfloat );
cr_unpackDispatch.TexParameterf( target, pname, param );
INCR_VAR_PTR();
}
void crUnpackTexParameteri( void )
{
GLenum target = READ_DATA( sizeof( int ) + 0, GLenum );
GLenum pname = READ_DATA( sizeof( int ) + 4, GLenum );
GLint param = READ_DATA( sizeof( int ) + 8, GLint );
cr_unpackDispatch.TexParameteri( target, pname, param );
INCR_VAR_PTR();
}
#if defined(CR_OPENGL_VERSION_1_2)
void crUnpackTexSubImage3D( void )
{
GLenum target = READ_DATA( sizeof( int ) + 0, GLenum );
GLint level = READ_DATA( sizeof( int ) + 4, GLint );
GLint xoffset = READ_DATA( sizeof( int ) + 8, GLint );
GLint yoffset = READ_DATA( sizeof( int ) + 12, GLint );
GLint zoffset = READ_DATA( sizeof( int ) + 16, GLint );
GLsizei width = READ_DATA( sizeof( int ) + 20, GLsizei );
GLsizei height = READ_DATA( sizeof( int ) + 24, GLsizei );
GLsizei depth = READ_DATA( sizeof( int ) + 28, GLsizei );
GLenum format = READ_DATA( sizeof( int ) + 32, GLenum );
GLenum type = READ_DATA( sizeof( int ) + 36, GLenum );
int noimagedata = READ_DATA( sizeof( int ) + 40, int );
GLvoid *pixels;
if ( noimagedata )
pixels = (void*) (uintptr_t) READ_DATA(sizeof(int)+44, GLint);
else
pixels = DATA_POINTER( sizeof( int ) + 48, GLvoid );
cr_unpackDispatch.PixelStorei( GL_UNPACK_ROW_LENGTH, 0 );
cr_unpackDispatch.PixelStorei( GL_UNPACK_SKIP_PIXELS, 0 );
cr_unpackDispatch.PixelStorei( GL_UNPACK_SKIP_ROWS, 0 );
cr_unpackDispatch.PixelStorei( GL_UNPACK_ALIGNMENT, 1 );
cr_unpackDispatch.TexSubImage3D(target, level, xoffset, yoffset, zoffset,
width, height, depth, format, type, pixels);
INCR_VAR_PTR();
}
#endif /* CR_OPENGL_VERSION_1_2 */
void crUnpackTexSubImage2D( void )
{
GLenum target = READ_DATA( sizeof( int ) + 0, GLenum );
GLint level = READ_DATA( sizeof( int ) + 4, GLint );
GLint xoffset = READ_DATA( sizeof( int ) + 8, GLint );
GLint yoffset = READ_DATA( sizeof( int ) + 12, GLint );
GLsizei width = READ_DATA( sizeof( int ) + 16, GLsizei );
GLsizei height = READ_DATA( sizeof( int ) + 20, GLsizei );
GLenum format = READ_DATA( sizeof( int ) + 24, GLenum );
GLenum type = READ_DATA( sizeof( int ) + 28, GLenum );
int noimagedata = READ_DATA( sizeof( int ) + 32, int );
GLvoid *pixels;
if ( noimagedata )
pixels = (void*) (uintptr_t) READ_DATA(sizeof(int)+36, GLint);
else
pixels = DATA_POINTER( sizeof( int ) + 40, GLvoid );
cr_unpackDispatch.PixelStorei( GL_UNPACK_ROW_LENGTH, 0 );
cr_unpackDispatch.PixelStorei( GL_UNPACK_SKIP_PIXELS, 0 );
cr_unpackDispatch.PixelStorei( GL_UNPACK_SKIP_ROWS, 0 );
cr_unpackDispatch.PixelStorei( GL_UNPACK_ALIGNMENT, 1 );
cr_unpackDispatch.TexSubImage2D( target, level, xoffset, yoffset, width,
height, format, type, pixels );
INCR_VAR_PTR();
}
void crUnpackTexSubImage1D( void )
{
GLenum target = READ_DATA( sizeof( int ) + 0, GLenum );
GLint level = READ_DATA( sizeof( int ) + 4, GLint );
GLint xoffset = READ_DATA( sizeof( int ) + 8, GLint );
GLsizei width = READ_DATA( sizeof( int ) + 12, GLsizei );
GLenum format = READ_DATA( sizeof( int ) + 16, GLenum );
GLenum type = READ_DATA( sizeof( int ) + 20, GLenum );
int noimagedata = READ_DATA( sizeof( int ) + 24, int );
GLvoid *pixels;
if ( noimagedata )
pixels = (void*) (uintptr_t) READ_DATA(sizeof(int)+28, GLint);
else
pixels = DATA_POINTER( sizeof( int ) + 32, GLvoid );
cr_unpackDispatch.PixelStorei( GL_UNPACK_ROW_LENGTH, 0 );
cr_unpackDispatch.PixelStorei( GL_UNPACK_SKIP_PIXELS, 0 );
cr_unpackDispatch.PixelStorei( GL_UNPACK_SKIP_ROWS, 0 );
cr_unpackDispatch.PixelStorei( GL_UNPACK_ALIGNMENT, 1 );
cr_unpackDispatch.TexSubImage1D( target, level, xoffset, width, format,
type, pixels );
INCR_VAR_PTR();
}
void crUnpackTexEnvfv( void )
{
GLenum target = READ_DATA( sizeof( int ) + 0, GLenum );
GLenum pname = READ_DATA( sizeof( int ) + 4, GLenum );
GLfloat *params = DATA_POINTER( sizeof( int ) + 8, GLfloat );
cr_unpackDispatch.TexEnvfv( target, pname, params );
INCR_VAR_PTR();
}
void crUnpackTexEnviv( void )
{
GLenum target = READ_DATA( sizeof( int ) + 0, GLenum );
GLenum pname = READ_DATA( sizeof( int ) + 4, GLenum );
GLint *params = DATA_POINTER( sizeof( int ) + 8, GLint );
cr_unpackDispatch.TexEnviv( target, pname, params );
INCR_VAR_PTR();
}
#define DATA_POINTER_DOUBLE( offset )
void crUnpackTexGendv( void )
{
GLenum coord = READ_DATA( sizeof( int ) + 0, GLenum );
GLenum pname = READ_DATA( sizeof( int ) + 4, GLenum );
GLdouble params[4];
unsigned int n_param = READ_DATA( 0, int ) - ( sizeof(int) + 8 );
if ( n_param > sizeof(params) )
crError( "crUnpackTexGendv: n_param=%d, expected <= %d\n", n_param,
(unsigned int)sizeof(params) );
crMemcpy( params, DATA_POINTER( sizeof( int ) + 8, GLdouble ), n_param );
cr_unpackDispatch.TexGendv( coord, pname, params );
INCR_VAR_PTR();
}
void crUnpackTexGenfv( void )
{
GLenum coord = READ_DATA( sizeof( int ) + 0, GLenum );
GLenum pname = READ_DATA( sizeof( int ) + 4, GLenum );
GLfloat *params = DATA_POINTER( sizeof( int ) + 8, GLfloat );
cr_unpackDispatch.TexGenfv( coord, pname, params );
INCR_VAR_PTR();
}
void crUnpackTexGeniv( void )
{
GLenum coord = READ_DATA( sizeof( int ) + 0, GLenum );
GLenum pname = READ_DATA( sizeof( int ) + 4, GLenum );
GLint *params = DATA_POINTER( sizeof( int ) + 8, GLint );
cr_unpackDispatch.TexGeniv( coord, pname, params );
INCR_VAR_PTR();
}
void crUnpackExtendAreTexturesResident( void )
{
GLsizei n = READ_DATA( 8, GLsizei );
const GLuint *textures = DATA_POINTER( 12, const GLuint );
SET_RETURN_PTR(12 + n * sizeof(GLuint));
SET_WRITEBACK_PTR(20 + n * sizeof(GLuint));
(void) cr_unpackDispatch.AreTexturesResident( n, textures, NULL );
}
void crUnpackExtendCompressedTexImage3DARB( void )
{
GLenum target = READ_DATA( 4 + sizeof(int) + 0, GLenum );
GLint level = READ_DATA( 4 + sizeof(int) + 4, GLint );
GLenum internalformat = READ_DATA( 4 + sizeof(int) + 8, GLenum );
GLsizei width = READ_DATA( 4 + sizeof(int) + 12, GLsizei );
GLsizei height = READ_DATA( 4 + sizeof(int) + 16, GLsizei );
GLsizei depth = READ_DATA( 4 + sizeof(int) + 20, GLsizei );
GLint border = READ_DATA( 4 + sizeof(int) + 24, GLint );
GLsizei imagesize = READ_DATA( 4 + sizeof(int) + 28, GLsizei );
int noimagedata = READ_DATA( 4 + sizeof(int) + 32, int );
GLvoid *pixels;
if( noimagedata )
pixels = (void*) (uintptr_t) READ_DATA(4+sizeof(int)+36, GLint);
else
pixels = DATA_POINTER( 4 + sizeof(int) + 40, GLvoid );
cr_unpackDispatch.CompressedTexImage3DARB(target, level, internalformat,
width, height, depth, border,
imagesize, pixels);
}
void crUnpackExtendCompressedTexImage2DARB( void )
{
GLenum target = READ_DATA( 4 + sizeof( int ) + 0, GLenum );
GLint level = READ_DATA( 4 + sizeof( int ) + 4, GLint );
GLenum internalformat = READ_DATA( 4 + sizeof( int ) + 8, GLenum );
GLsizei width = READ_DATA( 4 + sizeof( int ) + 12, GLsizei );
GLsizei height = READ_DATA( 4 + sizeof( int ) + 16, GLsizei );
GLint border = READ_DATA( 4 + sizeof( int ) + 20, GLint );
GLsizei imagesize = READ_DATA( 4 + sizeof( int ) + 24, GLsizei );
int noimagedata = READ_DATA( 4 + sizeof( int ) + 28, int );
GLvoid *pixels;
if ( noimagedata )
pixels = (void*) (uintptr_t) READ_DATA(4+sizeof(int)+32, GLint);
else
pixels = DATA_POINTER( 4 + sizeof( int ) + 36, GLvoid );
cr_unpackDispatch.CompressedTexImage2DARB( target, level, internalformat,
width, height, border, imagesize,
pixels );
}
void crUnpackExtendCompressedTexImage1DARB( void )
{
GLenum target = READ_DATA( 4 + sizeof(int) + 0, GLenum );
GLint level = READ_DATA( 4 + sizeof(int) + 4, GLint );
GLenum internalformat = READ_DATA( 4 + sizeof(int) + 8, GLenum );
GLsizei width = READ_DATA( 4 + sizeof(int) + 12, GLsizei );
GLint border = READ_DATA( 4 + sizeof(int) + 16, GLint );
GLsizei imagesize = READ_DATA( 4 + sizeof(int) + 20, GLsizei );
int noimagedata = READ_DATA( 4 + sizeof(int) + 24, int );
GLvoid *pixels;
if( noimagedata )
pixels = (void*) (uintptr_t) READ_DATA(4+sizeof(int)+28, GLint);
else
pixels = DATA_POINTER( 4 + sizeof(int) + 32, GLvoid );
cr_unpackDispatch.CompressedTexImage1DARB(target, level, internalformat,
width, border, imagesize, pixels);
}
void crUnpackExtendCompressedTexSubImage3DARB( void )
{
GLenum target = READ_DATA( 4 + sizeof(int) + 0, GLenum );
GLint level = READ_DATA( 4 + sizeof(int) + 4, GLint );
GLint xoffset = READ_DATA( 4 + sizeof(int) + 8, GLint );
GLint yoffset = READ_DATA( 4 + sizeof(int) + 12, GLint );
GLint zoffset = READ_DATA( 4 + sizeof(int) + 16, GLint );
GLsizei width = READ_DATA( 4 + sizeof(int) + 20, GLsizei );
GLsizei height = READ_DATA( 4 + sizeof(int) + 24, GLsizei );
GLsizei depth = READ_DATA( 4 + sizeof(int) + 28, GLsizei );
GLenum format = READ_DATA( 4 + sizeof(int) + 32, GLenum );
GLsizei imagesize = READ_DATA( 4 + sizeof(int) + 36, GLsizei );
int noimagedata = READ_DATA( 4 + sizeof(int) + 40, int );
GLvoid *pixels;
if( noimagedata )
pixels = (void*) (uintptr_t) READ_DATA(4+sizeof(int)+44, GLint);
else
pixels = DATA_POINTER( 4 + sizeof(int) + 48, GLvoid );
cr_unpackDispatch.CompressedTexSubImage3DARB(target, level, xoffset,
yoffset, zoffset, width,
height, depth, format,
imagesize, pixels);
}
void crUnpackExtendCompressedTexSubImage2DARB( void )
{
GLenum target = READ_DATA( 4 + sizeof(int) + 0, GLenum );
GLint level = READ_DATA( 4 + sizeof(int) + 4, GLint );
GLint xoffset = READ_DATA( 4 + sizeof(int) + 8, GLint );
GLint yoffset = READ_DATA( 4 + sizeof(int) + 12, GLint );
GLsizei width = READ_DATA( 4 + sizeof(int) + 16, GLsizei );
GLsizei height = READ_DATA( 4 + sizeof(int) + 20, GLsizei );
GLenum format = READ_DATA( 4 + sizeof(int) + 24, GLenum );
GLsizei imagesize = READ_DATA( 4 + sizeof(int) + 28, GLsizei );
int noimagedata = READ_DATA( 4 + sizeof(int) + 32, int );
GLvoid *pixels;
if( noimagedata )
pixels = (void*) (uintptr_t) READ_DATA(4+sizeof(int)+36, GLint);
else
pixels = DATA_POINTER( 4 + sizeof(int) + 40, GLvoid );
cr_unpackDispatch.CompressedTexSubImage2DARB(target, level, xoffset,
yoffset, width, height,
format, imagesize, pixels);
}
void crUnpackExtendCompressedTexSubImage1DARB( void )
{
GLenum target = READ_DATA( 4 + sizeof(int) + 0, GLenum );
GLint level = READ_DATA( 4 + sizeof(int) + 4, GLint );
GLint xoffset = READ_DATA( 4 + sizeof(int) + 8, GLint );
GLsizei width = READ_DATA( 4 + sizeof(int) + 12, GLsizei );
GLenum format = READ_DATA( 4 + sizeof(int) + 16, GLenum );
GLsizei imagesize = READ_DATA( 4 + sizeof(int) + 20, GLsizei );
int noimagedata = READ_DATA( 4 + sizeof(int) + 24, int );
GLvoid *pixels;
if( noimagedata )
pixels = (void*) (uintptr_t) READ_DATA(4+sizeof(int)+28, GLint);
else
pixels = DATA_POINTER( 4 + sizeof(int) + 32, GLvoid );
cr_unpackDispatch.CompressedTexSubImage1DARB(target, level, xoffset, width,
format, imagesize, pixels);
}
void crUnpackExtendGetTexImage(void)
{
GLenum target = READ_DATA( 8, GLenum );
GLint level = READ_DATA( 12, GLint );
GLenum format = READ_DATA( 16, GLenum );
GLenum type = READ_DATA( 20, GLenum );
GLvoid *pixels;
SET_RETURN_PTR(24);
SET_WRITEBACK_PTR(32);
pixels = DATA_POINTER(24, GLvoid);
cr_unpackDispatch.GetTexImage(target, level, format, type, pixels);
}
void crUnpackExtendGetCompressedTexImageARB(void)
{
GLenum target = READ_DATA( 8, GLenum );
GLint level = READ_DATA( 12, GLint );
GLvoid *img;
SET_RETURN_PTR( 16 );
SET_WRITEBACK_PTR( 24 );
img = DATA_POINTER(16, GLvoid);
cr_unpackDispatch.GetCompressedTexImageARB( target, level, img );
}
|