added debug mode for gl and ftgl (using GetLastError)