Imgui: Wrong colors, horizontal stripes, and corrupted text (Intel {Pentium G4400,Core i3-6100U}, onboard graphics)

Created on 2 Jul 2020  路  5Comments  路  Source: ocornut/imgui

Version/Branch of Dear ImGui:

Version: 1.77
Branch: master

Back-end/Renderer/Compiler/OS

Back-ends: imgui_impl_sdl.cpp (SDL 2.0.12) + imgui_impl_opengl3.cpp (loader: glad 0.1.33)
Compiler: MSVC
Operating System: Windows 10

My Issue/Question:

Wrong colors, horizontal stripes, and corrupted text

Screenshots/Video

Standalone, minimal, complete and verifiable example:
https://github.com/ocornut/imgui/tree/master/examples/example_sdl_opengl3

backenbinding opengl

Most helpful comment

This looks similar to https://github.com/bkaradzic/bgfx/commit/7c24f1bc24df0050bfda935320f52c707799933c

Try adding the following OpenGL attributes:

SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 8);
SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 8);
SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 8);
SDL_GL_SetAttribute(SDL_GL_ALPHA_SIZE, 8);

All 5 comments

This looks similar to https://github.com/bkaradzic/bgfx/commit/7c24f1bc24df0050bfda935320f52c707799933c

Try adding the following OpenGL attributes:

SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 8);
SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 8);
SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 8);
SDL_GL_SetAttribute(SDL_GL_ALPHA_SIZE, 8);

@domgho that fixed it, thanks

everyone that has this issue is offline

I did more research and apparently this is a known issue in the recent Intel drivers and rolling back fixes it: https://community.intel.com/t5/Graphics/GREEN-LINES-ON-AFTER-EFFECTS/td-p/1188849

After updating to 27.20.100.8336 I can reproduce it and setting SDL_GL_ALPHA_SIZE to at least 3 bits fixes it.

Closing as the bug seemingly has been fixed on Intel side according to the thread linked above.
Thank you @domgho for investigating this!

If we find that too many users have buggy drivers we may set those defaults in the SDL examples.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DarkLinux picture DarkLinux  路  3Comments

dowit picture dowit  路  3Comments

noche-x picture noche-x  路  3Comments

ghost picture ghost  路  3Comments

Folling picture Folling  路  3Comments