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
Campbell Barton
540e85d567
GHOST/X11: Map unknown es,dk keys to accentgrave
2018-06-08 15:21:20 +02:00
Campbell Barton
97e7d9f90b
Merge branch 'master' into blender2.8
2018-06-08 14:57:17 +02:00
Campbell Barton
4127aeb7a5
GHOST/X11: Map unknown de,fr keys to accentgrave
...
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.
2018-06-08 14:53:03 +02:00
Campbell Barton
cfc4805455
Merge branch 'master' into blender2.8
2018-06-07 20:41:10 +02:00
Campbell Barton
cfc1ddeff7
GHOST/X11: Xinput/XIM support caused double key-up
...
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.
2018-06-07 20:35:06 +02:00
Campbell Barton
da53c3f020
Merge branch 'master' into blender2.8
2018-06-04 18:50:14 +02:00
Campbell Barton
58e8c71cbd
Cleanup: strip ghost trailing space
2018-06-04 18:47:57 +02:00
Sergey Sharybin
57013c0a39
Merge branch 'master' into blender2.8
2018-05-07 14:20:47 +02:00
Sergey Sharybin
1a3fb3e8b1
Fix wrong comparison of drop target URI on X11
...
Need to compare, NOT to override passed file name.
2018-05-07 14:11:33 +02:00
fclem
e0c088f8fb
GHOST: WGL: Make background rendering works on windows.
...
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.
2018-04-26 11:49:47 +02:00
Clément Foucault
56fbdd7908
GHOST: Fix missing glXCreatePbuffer initialisation.
...
For some reason this happened if no windows are created before creating an
offscreen context.
2018-04-25 17:43:18 +02:00
Clément Foucault
284dbd56df
GHOST: GLX: Remove old version check.
2018-04-25 17:43:18 +02:00
Germano
785e8a636a
GHOST: Fix processEvents not notifying events handled by the system if the window is hidden.
...
Reviewed By: @LazyDodo
Differential Revision: https://developer.blender.org/D3154
2018-04-19 11:26:33 -03:00
Dalai Felinto
11130970c6
Merge commit 'origin/master^' into blender2.8
2018-03-29 10:36:01 -03:00
Brecht Van Lommel
4bd5b824b0
Fix missing confirm quit dialog on macOS, after recent changes.
2018-03-28 10:54:17 +02:00
Sergey Sharybin
fc348a563e
Fix bad merge resolution from previous commit
2018-03-26 14:59:55 +02:00
Sergey Sharybin
21aca14e43
Merge branch 'master' into blender2.8
2018-03-26 14:56:00 +02:00
Sergey Sharybin
3c45fdd171
GHOST: Solve compilation error of test programs
2018-03-26 14:51:56 +02:00
Germano
d33d6d0e06
GHOST CONTEXTWGL: Remove unused member
...
No longer used from this commit: https://developer.blender.org/rB0940e89e604d85d717f792b73e30e5e96a42e7c6#change-kg3gZvqkYPB6
2018-03-21 12:30:36 -03:00
Campbell Barton
69eb452622
Merge branch 'master' into blender2.8
2018-03-21 16:27:48 +01:00
Campbell Barton
5ba5254ec1
UI: Optional prompt to quit for non win32 systems
...
D566 by @januz
Use Blender native dialog when OS dialog's aren't supported.
2018-03-21 16:04:01 +01:00
Brecht Van Lommel
3692a2bcb3
Merge branch 'master' into blender2.8
2018-03-16 04:35:37 +01:00
Lukas Stockner
41149ca134
GHOST: Support Unity taskbar progress API
...
Unity itself is deprecated, but the API is also supported by KDE and the GNOME Dock extension,
which means that it will be useful for a wide variety of distributions.
To get a progress bar, the system must have a blender.desktop file and libunity installed.
The need for libunity is annoying, but the only alternative would be to integrate a DBus library...
Reviewers: campbellbarton, brecht
Differential Revision: https://developer.blender.org/D3106
2018-03-15 22:49:56 +01:00
Clément Foucault
316ccc4a6e
GHOST: Fix wrong usage of wglCreatePbufferARB.
...
Last argument must be a pointer to list of int terminated by a value of 0.
2018-03-15 01:51:46 +01:00
Clément Foucault
0940e89e60
GHOST: Add new interface to manage offscreen contexts.
...
Offscreen contexts are not attached to a window and can only be used for rendering to frambuffer objects.
CGL implementation : Brecht Van Lommel (brecht)
GLX implementation : Clément Foucault (fclem)
WGL implementation : Germano Cavalcante (mano-wii)
Other implementation are just place holder for now.
2018-02-26 19:10:15 +01:00
Germano
85f179eb23
Fix T53399: Dopesheet keyframes and the drawing of points were not visible with some Intel cards
2018-02-16 18:02:06 -02:00
Germano
4b1904c8df
GHOST: Windows: Print information on the GPU
2018-02-16 16:46:58 -02:00
Germano
0bf615fc24
GHOST: Optimize and simplify the creation of a GHOST_Context on Windows
...
Instead of cloning the window to create dummyHWNDs and dummyHDCs to avoid calling the SetPixelFormat more than once in the same window, use the original window and HDC and do not call the SetPixelFormat again.
In addition to avoiding a lot of unnecessary calls, it simplifies the code and makes it match the others OS
2018-02-10 00:32:13 -02:00
Campbell Barton
941484ff81
Merge branch 'master' into blender2.8
2017-11-01 01:27:03 +11:00
Arto Kitula
076abf6cd8
MacOS: Use correct Cocoa protocol on any compiler
2017-10-31 11:30:55 +02:00
Julian Eisel
a3313315ba
Merge branch 'master' into blender2.8
2017-10-26 22:57:47 +02:00
Arto Kitula
1effab7809
Fix T52984. Trackpad rotation to natural direction
2017-10-26 23:11:25 +03:00
Sergey Sharybin
7771e0b474
Merge branch 'master' into blender2.8
2017-10-25 11:26:53 +02:00
Campbell Barton
2103194f79
Fix T53004: XWayland ignores cursor-warp calls
...
There is currently a limitation in XWayland,
the cursor needs to be hidden during warp calls.
2017-10-25 20:12:12 +11:00
Campbell Barton
ea606a7847
Merge branch 'master' into blender28
2017-10-06 21:25:33 +11:00
Ray Molenkamp
57d7e5b6ee
Fix T42489 and T52936: Loading blend with minimized window results in crash or empty screen on windows.
...
Reviewed By: @brecht , @sergey
Differential Revision: http://developer.blender.org/D2866
2017-10-04 11:44:22 -06:00
Campbell Barton
e3fe8128e4
Merge branch 'master' into blender2.8
2017-09-29 19:55:00 +10:00