summaryrefslogtreecommitdiff
path: root/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_stipple.c
blob: b6e1e1cada87313090d8fc2ba650001af2b3e70a (plain)
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
/* Copyright (c) 2001, Stanford University
 * All rights reserved
 *
 * See the file LICENSE.txt for information on redistributing this software.
 */

#include "unpacker.h"

void crUnpackPolygonStipple( void  )
{
    int nodata = READ_DATA(0, int);
    GLubyte *mask;

    if (nodata)
        mask = (void*) (uintptr_t) READ_DATA(4, GLint);
    else
        mask = DATA_POINTER( 4, GLubyte );

    cr_unpackDispatch.PolygonStipple(mask);

    if (nodata)
        INCR_DATA_PTR(8);
    else
        INCR_DATA_PTR(4 + 32*32/8);
}