VirtualBox

source: vbox/trunk/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_stipple.c@ 53814

Last change on this file since 53814 was 27983, checked in by vboxsync, 15 years ago

crOpenGL: fix 32/64bit bug

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 528 bytes
Line 
1/* Copyright (c) 2001, Stanford University
2 * All rights reserved
3 *
4 * See the file LICENSE.txt for information on redistributing this software.
5 */
6
7#include "unpacker.h"
8
9void crUnpackPolygonStipple( void )
10{
11 int nodata = READ_DATA(0, int);
12 GLubyte *mask;
13
14 if (nodata)
15 mask = (void*) (uintptr_t) READ_DATA(4, GLint);
16 else
17 mask = DATA_POINTER( 4, GLubyte );
18
19 cr_unpackDispatch.PolygonStipple(mask);
20
21 if (nodata)
22 INCR_DATA_PTR(8);
23 else
24 INCR_DATA_PTR(4 + 32*32/8);
25}
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette