mirror of
https://github.com/ocornut/imgui.git
synced 2026-11-04 20:32:00 +00:00
#3998 breaks GL_CLIP_ORIGIN on OpenGL contexts < 4.5 #4170
Labels
No labels
accidentally closed
android
backends
bug
building
clipper
coloredit
color spaces
cplusplus
data types
demo
disabled
doc
docking
dpi
drag drop
drawing/drawlist
dropped
dx12
enhancement
focus
font/text
gallery
help wanted
idle/power saving
ime
in progress
inputs
inputtext
internals
label/id and id stack
language bindings
layout
linux/bsd
menus
multi-contexts
multi-threading
multi-viewports
nav
news/info
opengl
optimization
osx/ios
overlap
plot/graph
popups
question
scrolling
selection
settings
sliders/drags
style
tables/columns
tabs
test wanted
tools
tooltips
tree
tricks & tips
useful widgets
vulkan
web
window pos/depth
window sizing
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ocornut/imgui#4170
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I just updated to ImGui 1.83 from 1.79, and my gui is upside down again :(
Since #3998
GL_CLIP_ORIGINis only checked for opengl contexts >= 4.5, but my application actually request 3.3 context and uses theGL_ARB_clip_controlextension, which defines the same function and enum values as OpenGL 4.5. (And for example, the nvidia driver gives me a 3.3 core context, where the gui is now upside down and buggy, but the intel driver gives me a 4.5 core context, and everything is fine...)Unfortunately the opengl backend doesn't parse the list of extensions, so it'd either have to do that, or use the info from the loader (most loaders expose this info, but in a different way). I'm not sure how widespread this functionality in the wild, but seeing how much trouble it causes, I would be even okay with a solution where the backend doesn't try to figure this out on its own, and instead
ImGui_ImplOpenGL3_RenderDrawDatareceives an extra bool parameter (basically the currentcurrent_clip_originvariable, default to true so normal GL apps continue to work). Not sure what is the best solution.Version/Branch of Dear ImGui:
Version: 1.83
Branch: master
Back-end/Renderer/Compiler/OS
Back-ends: imgui_impl_opengl3.cpp + imgui_impl_glfw.cpp
Operating System: Linux
Hello,
Thanks for opening this.
I guess we should work out a way to check for
GL_ARB_clip_controlin the backend, that would be simpler and more correct.Could you run code of that sort:
https://www.geeks3d.com/20100722/tips-how-to-get-the-list-of-the-opengl-extensions-with-a-core-profile/
With both drivers, and confirm that
GL_ARB_clip_controlis listed in both cases?Yes, I checked, and I have the
GL_ARB_clip_controlextension listed both with the nvidia and intel driver (and even with osmesa, but that also creates a 4.5 context).Pushed a fix for it.
GL being GL I expect one of those new call to fail on some obscure setup, and we'll also fix what once detected.
Thanks, it looks like it's working with both cards I can test with.
Now figure out what to do with my old column api based property editor...