Passing a bank to a GL function

BlitzMax Forums/BlitzMax Programming/Passing a bank to a GL function

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Try this.

Local buffer@ Ptr = s.ToCString( ) ' Null-terminated
glListBase( listBase )
glCallLists( s.Length, GL_UNSIGNED_BYTE, buffer )
MemFree( buffer )