Age | Commit message (Collapse) | Author |
|
|
|
|
|
We use a hidden window for each offscreen context we need.
On X11 (linux) it does not show any other windows in the OS task bar
but it might be the case on other operating systems (untested).
|
|
|
|
|
|
So far only noticed system de-initialization doesn't perform full
object free. So rather harmless but yet stupid.
|
|
This is no longer needed with the new offscreen draw method, so use whatever
is default and hopefully fastest. Fixes console warnings in some setups that
don't have swap copy.
|
|
|
|
The X resource database is to be explicitly destroyed. This fixes 46 bytes
leak per every window DPI query (which happens a lot on window move/resize
and even on areas resize).
Unfortunately, this does not fully fix the leak since the known leak:
https://bugs.freedesktop.org/show_bug.cgi?id=94604
|
|
This reverts commit 128926a41b368e166af63515370d9c9367e3dda2.
|
|
This reverts commit 800c3c5ca581d5427c4270c60f022c3ccdd8b312.
# Conflicts:
# intern/ghost/intern/GHOST_ContextWGL.cpp
|
|
This reverts commit 27b673402228aeede8369d99bf64f3da21541058.
|
|
This reverts commit aca403c819c4fc9e1e7197bbe3027d43d114bfd6.
|
|
|
|
|
|
createOffscreenContext left the new context bound to the calling thread
causing a race condition with the background thread doing the actual
rendering. see T55555 for a more detailed description of the problem.
this patch changes the behavior of createOffscreenContext to restore the
context to the calling context.
Reviewers: fclem
Differential Revision: https://developer.blender.org/D3499
|
|
rBe0c088f8fb5a introduced offline rendering support on windows, sadly it was trying to use the desktop window for getting a context, which given SetPixelFormat can only be called once for any given HDC was an unfortunate choice.
This patch uses a temporary hidden window for getting the opengl context.
Reviewers: mano-wii
Differential Revision: https://developer.blender.org/D3481
|
|
This reverts commit 7529690df38ced314d59af3b10c610e3fd56c807.
I tried to put manually add threading protection to GHOST around
Xlib calls but that did not fix the crashes. So reverting that
for now despite the performance implication on some system.
|
|
|
|
This was needed because we were sharing opengl contexts across multiple
threads. With the recent refactor this should be no longer needed.
|
|
Was causing crash on startup.
|
|
Same as 128926a41b368e166af63515370d9c9367e3dda2 but for windows.
|
|
This way they can be init in their owner thread. Contexts should not be
shared accross threads. Once you make a context active on a thread it is
owned by the thread.
This commit only have the GLX backend updated but should not break orther
platform.
|
|
|
|
|
|
|
|
Harmless since this is always enabled,
only do this for easier troubleshooting when disabling the define.
|
|
|
|
This means we can check keys such as tilde in a generic way.
|
|
|
|
|
|
|
|
|
|
This still uses the correct string when typing text,
it just allows the key to be used in keymaps.
We should eventually add scan-code support.
|
|
|
|
All keyboard events were sending double key events (including modifiers)
when xinput was enabled with gnome (causing much confusion!).
I cant test if XIM works,
but this isn't useful to send double events, so disabling for now.
|
|
|
|
|
|
|
|
Need to compare, NOT to override passed file name.
|
|
When creating an offscreen context we need wglCreatePbufferARB to create
a drawable. In non-background mode wglCreatePbufferARB would have been set
by the main window creation code. But in background mode this is not the
case so we need to create a dummy context using the screen window to init
wglew properly.
|
|
For some reason this happened if no windows are created before creating an
offscreen context.
|
|
|
|
window is hidden.
Reviewed By: @LazyDodo
Differential Revision: https://developer.blender.org/D3154
|
|
|
|
|
|
|
|
|
|
|
|
No longer used from this commit: https://developer.blender.org/rB0940e89e604d85d717f792b73e30e5e96a42e7c6#change-kg3gZvqkYPB6
|