OpenGL: minor cleanup & TODO

Just clearing out some old git stashes.

No point getting old GL light model to work on old Intel GPUs (both are obsolete for 2.8)
This commit is contained in:
Mike Erwin 2017-04-15 19:43:56 -04:00
parent da17928fd5
commit 888e742f84
Notes: blender-bot 2024-01-16 18:05:25 +01:00
Referenced by issue #51239, On 2.80 open Data-Blocks for object, causes crash
1 changed files with 3 additions and 5 deletions

View File

@ -226,10 +226,6 @@ void gpu_extensions_init(void)
GG.driver = GPU_DRIVER_ANY;
}
/* make sure double side isn't used by default and only getting enabled in places where it's
* really needed to prevent different unexpected behaviors like with intel gme965 card (sergey) */
glLightModeli(GL_LIGHT_MODEL_TWO_SIDE, GL_FALSE);
#ifdef _WIN32
GG.os = GPU_OS_WIN;
#elif defined(__APPLE__)
@ -362,12 +358,14 @@ int GPU_color_depth(void)
bool GPU_mem_stats_supported(void)
{
return (GLEW_NVX_gpu_memory_info || (GLEW_ATI_meminfo)) && (G.debug & G_DEBUG_GPU_MEM);
return (GLEW_NVX_gpu_memory_info || GLEW_ATI_meminfo) && (G.debug & G_DEBUG_GPU_MEM);
}
void GPU_mem_stats_get(int *totalmem, int *freemem)
{
/* TODO(merwin): use Apple's platform API to get this info */
if (GLEW_NVX_gpu_memory_info) {
/* returned value in Kb */
glGetIntegerv(GL_GPU_MEMORY_INFO_TOTAL_AVAILABLE_MEMORY_NVX, totalmem);