mirror of
https://github.com/ocornut/imgui.git
synced 2025-10-06 01:56:29 +00:00
Examples: Comments about GLSL version not being the same as GL context version. (#1828)
This commit is contained in:
@@ -358,7 +358,7 @@ void ImGui_ImplSdlGL3_InvalidateDeviceObjects()
|
||||
|
||||
bool ImGui_ImplSdlGL3_Init(SDL_Window* window, const char* glsl_version)
|
||||
{
|
||||
// Store GL version string so we can refer to it later in case we recreate shaders.
|
||||
// Store GLSL version string so we can refer to it later in case we recreate shaders. Note: GLSL version is NOT the same as GL version. Leave this to NULL if unsure.
|
||||
if (glsl_version == NULL)
|
||||
glsl_version = "#version 150";
|
||||
IM_ASSERT((int)strlen(glsl_version) + 2 < IM_ARRAYSIZE(g_GlslVersion));
|
||||
|
Reference in New Issue
Block a user