Campbell Barton
55e719ec35
Merge branch 'master' into blender2.8
2018-11-14 17:21:34 +11:00
Campbell Barton
d7f55c4ff5
Cleanup: comment block tabs
2018-11-14 17:10:56 +11:00
Campbell Barton
793d5cb7fd
Merge branch 'master' into blender2.8
2018-10-09 10:41:13 +11:00
Campbell Barton
76f640c27d
Cleanup: spelling
2018-10-09 09:29:14 +11:00
Brecht Van Lommel
786870e26f
Fix T56909: wrong interface scale on macOS 10.14, when using 10.14 SDK.
...
This does not affect existing releases as far as I can tell, only new builds
using the new SDK have the problem.
2018-10-01 08:35:32 +02:00
Brecht Van Lommel
0722981e99
Fix T56909: wrong interface scale on macOS 10.14, when using 10.14 SDK.
...
This does not affect existing releases as far as I can tell, only new builds
using the new SDK have the problem.
2018-09-30 19:33:41 +02:00
Sergey Sharybin
4de1e673a4
Merge branch 'master' into blender2.8
2018-09-27 14:51:33 +02:00
Brecht Van Lommel
2a63e062b0
Tests: add --no-window-focus to open window without focus.
...
This is useful to run OpenGL tests while continuing to do other tasks
without windows constantly popping up in the foreground.
2018-09-27 12:21:48 +02:00
Campbell Barton
0ddf3e110e
Cleanup: comment blocks
2018-09-02 18:51:31 +10:00
Campbell Barton
ae57383648
Cleanup: comment blocks
2018-09-02 18:28:27 +10:00
Brecht Van Lommel
3f2090f401
Merge branch 'master' into blender2.8
2018-08-31 13:00:19 +02:00
Brecht Van Lommel
9492522db5
Fix T56618: crash when typing certain characters on Linux.
2018-08-31 12:43:39 +02:00
Brecht Van Lommel
871b7ba892
Merge branch 'master' into blender2.8
2018-08-28 19:15:08 +02:00
Colby Klein
31c99c0c4e
Fix pen tablet stuck on Windows for some non-Wacom tablets.
...
Differential Revision: https://developer.blender.org/D3573
2018-08-26 23:19:31 +02:00
Clément Foucault
4fcca6a0ab
GHOST: Make win32 errors more readable on some drivers
2018-08-14 21:38:13 +02:00
Campbell Barton
e4b68befa2
Merge branch 'master' into blender2.8
2018-08-08 17:56:56 +10:00
Campbell Barton
697d4b227e
Ghost/X11: correct function signature
2018-08-08 17:54:41 +10:00
Campbell Barton
6fbd210b91
Merge branch 'master' into blender2.8
2018-08-08 11:05:08 +10:00
Campbell Barton
931a279f44
Cleanup: use static variables
2018-08-08 11:00:57 +10:00
Arto Kitula
95e490889d
macOS GHOST: use non-deprecated functions for coordinates
2018-08-07 21:53:02 +03:00
mano-wii
030297209f
Fix T54799: NDOF events not dispatched on windows.
...
Caused by commit rB785e8a636a29
2018-08-07 11:41:55 -03:00
Clément Foucault
60499ff25d
GHOST: Fix SDL backend.
...
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).
2018-07-27 16:28:44 +02:00
Brecht Van Lommel
b3b4b9fb8c
Fix WITH_HEADLESS build.
2018-07-20 15:25:47 +02:00
Sergey Sharybin
5852420023
Merge branch 'master' into blender2.8
2018-07-16 17:34:10 +02:00
Sergey Sharybin
e6af8758c8
Ghost: Fix memory leak happening with keyboard mapping access
...
So far only noticed system de-initialization doesn't perform full
object free. So rather harmless but yet stupid.
2018-07-16 17:32:57 +02:00
Brecht Van Lommel
7f5e4a819c
GHOST/Windows: don't prefer swap copy method.
...
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.
2018-07-10 17:48:48 +02:00
Sergey Sharybin
0bfc06b7b7
Merge branch 'master' into blender2.8
2018-07-10 11:23:10 +02:00
Sergey Sharybin
719629f2aa
GHOST: Fix memory leak in X11 DPI query
...
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
2018-07-10 10:59:06 +02:00
Clément Foucault
433e3db8d8
Revert "GHOST: Delay opengl context initialization"
...
This reverts commit 128926a41b .
2018-07-03 13:36:04 +02:00
Clément Foucault
6c9fe9cd8c
Revert "GHOST: WGL: Delay context initialization for offscreen contexts."
...
This reverts commit 800c3c5ca5 .
# Conflicts:
# intern/ghost/intern/GHOST_ContextWGL.cpp
2018-07-03 13:36:04 +02:00
Clément Foucault
d78bcf9055
Revert "GHOST: Fix uninitialized var"
...
This reverts commit 27b6734022 .
2018-07-03 13:36:04 +02:00
Clément Foucault
7a8403dbb0
Revert "GHOST: Fix uninitialized values."
...
This reverts commit aca403c819 .
2018-07-03 13:36:04 +02:00
Campbell Barton
9bd0c63382
Merge branch 'master' into blender2.8
2018-06-29 08:05:38 +02:00
Campbell Barton
af36dd4664
Cleanup: trailing newlines
2018-06-29 08:02:49 +02:00
Ray Molenkamp
2fa231a86b
Ghost: Fix F12 render on windows.
...
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
2018-06-23 11:37:35 -06:00
Ray Molenkamp
8c77c36539
Ghost: Fix offline OGL render on windows.
...
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
2018-06-18 18:10:45 -06:00
Clément Foucault
2e09b277d5
Revert "GHOST: GLX: Remove XInitThreads"
...
This reverts commit 7529690df3 .
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.
2018-06-14 18:17:28 +02:00
fclem
aca403c819
GHOST: Fix uninitialized values.
2018-06-11 17:07:52 +02:00
Clément Foucault
7529690df3
GHOST: GLX: Remove XInitThreads
...
This was needed because we were sharing opengl contexts across multiple
threads. With the recent refactor this should be no longer needed.
2018-06-11 17:23:06 +02:00
Clément Foucault
27b6734022
GHOST: Fix uninitialized var
...
Was causing crash on startup.
2018-06-11 17:04:59 +02:00
fclem
800c3c5ca5
GHOST: WGL: Delay context initialization for offscreen contexts.
...
Same as 128926a41b but for windows.
2018-06-11 13:06:54 +02:00
Clément Foucault
128926a41b
GHOST: Delay opengl context initialization
...
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.
2018-06-11 13:55:02 +02:00
Campbell Barton
964c5421df
Merge branch 'master' into blender2.8
2018-06-09 12:56:37 +02:00
Campbell Barton
9bcced83ee
GHOST/X11: Print the keycode w/ debug enabled
2018-06-09 12:53:39 +02:00
Campbell Barton
7ce81484f8
Merge branch 'master' into blender2.8
2018-06-09 12:06:33 +02:00
Campbell Barton
6f4c7f1f01
GHOST/X11: Correct non-latin kb workaround case
...
Harmless since this is always enabled,
only do this for easier troubleshooting when disabling the define.
2018-06-09 12:04:07 +02:00
Campbell Barton
b492a0e767
Merge branch 'master' into blender2.8
2018-06-09 11:27:22 +02:00
Campbell Barton
f3427cbc98
GHOST/X11: support accessing physical keycodes
...
This means we can check keys such as tilde in a generic way.
2018-06-09 11:23:41 +02:00
Campbell Barton
03f0ecca93
GHOST/X11: Map unknown us.intl key to accentgrave
2018-06-09 09:10:04 +02:00
Campbell Barton
6739bb195e
Merge branch 'master' into blender2.8
2018-06-08 15:22:28 +02:00