~ubuntu-branches/ubuntu/vivid/virtualbox/vivid

« back to all changes in this revision

Viewing changes to src/VBox/GuestHost/OpenGL/packer/pack_beginend.c

  • Committer: Package Import Robot
  • Author(s): Felix Geyer
  • Date: 2011-12-29 12:29:25 UTC
  • mfrom: (3.1.8 sid)
  • Revision ID: package-import@ubuntu.com-20111229122925-8ota2o33fuk0bkf8
Tags: 4.1.8-dfsg-1
* New upstream release.
* Move all transitional packages to section oldlibs and priority extra.
* Refresh 16-no-update.patch.
* Drop 36-kernel-3.2.patch, applied upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
        pc->buffer.holds_BeginEnd = 1;
21
21
    }
22
22
    CR_GET_BUFFERED_POINTER( pc, 4 );
 
23
    CRASSERT(pc->enmBeginEndState == CRPackBeginEndStateNone);
 
24
    pc->enmBeginEndState = CRPackBeginEndStateStarted;
23
25
    pc->current.begin_data = data_ptr;
24
26
    pc->current.begin_op = pc->buffer.opcode_current;
25
27
    pc->current.attribsUsedMask = 0;
41
43
        pc->buffer.holds_BeginEnd = 1;
42
44
    }
43
45
    CR_GET_BUFFERED_POINTER( pc, 4 );
 
46
    CRASSERT(pc->enmBeginEndState == CRPackBeginEndStateNone);
 
47
    pc->enmBeginEndState = CRPackBeginEndStateStarted;
44
48
    pc->current.begin_data = data_ptr;
45
49
    pc->current.begin_op = pc->buffer.opcode_current;
46
50
    pc->current.attribsUsedMask = 0;
57
61
    CR_GET_BUFFERED_POINTER_NO_ARGS( pc );
58
62
    WRITE_OPCODE( pc, CR_END_OPCODE );
59
63
    pc->buffer.in_BeginEnd = 0;
 
64
    CRASSERT(pc->enmBeginEndState == CRPackBeginEndStateStarted
 
65
            || pc->enmBeginEndState == CRPackBeginEndStateFlushDone);
 
66
    if (pc->enmBeginEndState == CRPackBeginEndStateFlushDone)
 
67
    {
 
68
        pc->Flush( pc->flush_arg );
 
69
    }
 
70
    pc->enmBeginEndState = CRPackBeginEndStateNone;
60
71
    CR_UNLOCK_PACKER_CONTEXT(pc);
61
72
}
62
73
 
68
79
    CR_GET_BUFFERED_POINTER_NO_ARGS( pc );
69
80
    WRITE_OPCODE( pc, CR_END_OPCODE );
70
81
    pc->buffer.in_BeginEnd = 0;
 
82
    CRASSERT(pc->enmBeginEndState == CRPackBeginEndStateStarted
 
83
            || pc->enmBeginEndState == CRPackBeginEndStateFlushDone);
 
84
    if (pc->enmBeginEndState == CRPackBeginEndStateFlushDone)
 
85
    {
 
86
        pc->Flush( pc->flush_arg );
 
87
    }
71
88
    CR_UNLOCK_PACKER_CONTEXT(pc);
72
89
}
73
90