Page MenuHome

Fix: Incorrect OpenGL Version detected for Intel HD Graphics 4000 on Windows
AbandonedPublic

Authored by Germano Cavalcante (mano-wii) on Jan 13 2018, 5:37 PM.

Details

Summary

The maximum OpenGL version supported by Intel HD Graphics on Windows is the 4.0

However the solution rB75a759ea5e9a , makes GHOST accept the version 4.2 on Windows!

And this is causing problems. (See picture)

So the solution to this patch was to get the opengl version of the context created with wglCreateContext. Following the sample described here:
https://www.khronos.org/opengl/wiki/Creating_an_OpenGL_Context_(WGL)#Sample_Code:_Create_Render_Context.2C_Check_GL_VERSION

Diff Detail

Repository
rB Blender

Event Timeline

if intel lies about their 4.2 support, i don't think forcing all AMD users to 3.3 as well is the way to go?

Germano Cavalcante (mano-wii) retitled this revision from Fix: OpenGL Version detected for Intel HD Graphics 4000 is Incorrect to Fix: Incorrect OpenGL Version detected for Intel HD Graphics 4000 on Windows .Jan 13 2018, 7:36 PM
Germano Cavalcante (mano-wii) edited the summary of this revision. (Show Details)
Germano Cavalcante (mano-wii) updated this revision to Diff 9812.

According to the sample presented on a kronos website link, the context created by wglCreateContext can be used to check the GL_VERSION.

Maybe more tests are still needed to know if the context created by wglCreateContext always uses the latest supported version.

But I did tests on Intel (R) HD Graphics 4000 and AMD Radeon HD 7570M and the results confirmed the latest version.

@Germano Cavalcante (mano-wii) why do you think Intel HD is limited to OpenGL 4.0? My Mac's HD 4000 reports OpenGL 4.1, so 4.2 on Windows sound legitimate to me.

@Germano Cavalcante (mano-wii) why do you think Intel HD is limited to OpenGL 4.0? My Mac's HD 4000 reports OpenGL 4.1, so 4.2 on Windows sound legitimate to me.

Maybe the driver made for Mac really support 4.1. But here on Windows, the Intel Graphics Control Panel clearly states that the supported version is 4.0.
Also the blender system_info.txt reported version: '4.0.0 - Build 10.18.10.4885' even when the generated context as 4.2.
In addition to having solved the problem shown in the picture.

Maybe the graphics card actually supports higher versions, but does the driver (even the last updated) support all the features of the above-reported versions?

Hello, I confirm the fix works for the messages in console, for the light lines and for the node lines (intel hd 4000 i53230m). Thanks @Germano Cavalcante (mano-wii)

The issues mentioned here have been fixed in the main branch.