remove GPU_display_list_support query
Display lists are not part of modern OpenGL. Only BGE used this, and I forced those uses to false. Commented out old BGE logic for reference.
This commit is contained in:
parent
13687e89d8
commit
8cb3c7bdec
|
@ -42,7 +42,6 @@ void GPU_extensions_disable(void);
|
|||
|
||||
bool GPU_legacy_support(void);
|
||||
bool GPU_full_non_power_of_two_support(void);
|
||||
bool GPU_display_list_support(void);
|
||||
bool GPU_bicubic_bump_support(void);
|
||||
bool GPU_geometry_shader_support(void);
|
||||
bool GPU_instanced_drawing_support(void);
|
||||
|
|
|
@ -322,19 +322,6 @@ bool GPU_full_non_power_of_two_support(void)
|
|||
return true;
|
||||
}
|
||||
|
||||
bool GPU_display_list_support(void)
|
||||
{
|
||||
#ifdef WITH_LEGACY_OPENGL
|
||||
/* deprecated in GL 3
|
||||
* supported on older GL and compatibility profile
|
||||
* still queried by game engine
|
||||
*/
|
||||
return true;
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
bool GPU_bicubic_bump_support(void)
|
||||
{
|
||||
return GLEW_VERSION_4_0 || (GLEW_ARB_texture_query_lod && GLEW_VERSION_3_0);
|
||||
|
|
|
@ -267,7 +267,7 @@ extern "C" void StartKetsjiShell(struct bContext *C, struct ARegion *ar, rcti *c
|
|||
bool profile = (SYS_GetCommandLineInt(syshandle, "show_profile", 0) != 0);
|
||||
bool frameRate = (SYS_GetCommandLineInt(syshandle, "show_framerate", 0) != 0);
|
||||
bool animation_record = (SYS_GetCommandLineInt(syshandle, "animation_record", 0) != 0);
|
||||
bool displaylists = (SYS_GetCommandLineInt(syshandle, "displaylists", 0) != 0) && GPU_display_list_support();
|
||||
bool displaylists = false; // (SYS_GetCommandLineInt(syshandle, "displaylists", 0) != 0) && GPU_display_list_support();
|
||||
#ifdef WITH_PYTHON
|
||||
bool nodepwarnings = (SYS_GetCommandLineInt(syshandle, "ignore_deprecation_warnings", 0) != 0);
|
||||
#endif
|
||||
|
|
|
@ -586,7 +586,7 @@ bool GPG_Application::initEngine(GHOST_IWindow* window, const int stereoMode)
|
|||
|
||||
bool fixed_framerate= (SYS_GetCommandLineInt(syshandle, "fixedtime", (gm->flag & GAME_ENABLE_ALL_FRAMES)) != 0);
|
||||
bool frameRate = (SYS_GetCommandLineInt(syshandle, "show_framerate", 0) != 0);
|
||||
bool useLists = (SYS_GetCommandLineInt(syshandle, "displaylists", gm->flag & GAME_DISPLAY_LISTS) != 0) && GPU_display_list_support();
|
||||
bool useLists = false; // (SYS_GetCommandLineInt(syshandle, "displaylists", gm->flag & GAME_DISPLAY_LISTS) != 0) && GPU_display_list_support();
|
||||
bool nodepwarnings = (SYS_GetCommandLineInt(syshandle, "ignore_deprecation_warnings", 1) != 0);
|
||||
bool restrictAnimFPS = (gm->flag & GAME_RESTRICT_ANIM_UPDATES) != 0;
|
||||
|
||||
|
|
Loading…
Reference in New Issue