Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_d3d_primitive_end

(view raw script w/o annotations or w/e)
1
function d3d_primitive_end() //gml_Script_d3d_primitive_end
2
{
3
    if (global.__d3dPrimKind != -1)
4
    {
5
        vertex_end(global.__d3dPrimBuffer)
6
        vertex_submit(global.__d3dPrimBuffer, global.__d3dPrimKind, global.__d3dPrimTex)
7
        global.__d3dPrimKind = -1
8
    }
9
    else
10
        show_debug_message("d3d_primitive_end :: with no d3d_primitive_begin ")
11
}