Bastien Montagne
14221521fb
Fix previous own fix - second message was actually OK, first one had bad comma placement...
...
Thanks to psy-fi for the head-up.
2015-11-24 15:36:49 +01:00
Bastien Montagne
0b422900c8
Fix broken windows 'MessageBox' calls (UI messages).
...
Reported by Bzzt_Ploink on IRC.
2015-11-24 15:14:22 +01:00
Antony Riakiotakis
db1f0e3616
Error out on Windows if driver does not support OpenGL 2.1 with an error
...
messagebox.
2015-11-22 20:53:57 +01:00
Antony Riakiotakis
8623d75b46
Add check for OpenGL version 2.1 on linux.
...
Unfortunately there's no easy way to show a messagebox here, so just
print a warning on fstderr and exit. If we don't call exit() here we get
crashes on other blender systems (python, opensubdiv) and it can get
tricky to track the initialization state here, so just using exit()
should do the trick for now.
2015-11-22 18:14:46 +01:00
Campbell Barton
ae8e4d3718
Cleanup: redundant 'break', minor edits
2015-11-19 22:52:13 +11:00
Campbell Barton
dc14629b26
GHOST: rename suffix X11 to Unix for non X11 files
...
We may use these for Wayland or SDL back-ends.
2015-11-16 21:57:05 +11:00
Campbell Barton
cfbbf72d89
Revert "Increase CMake minimum version to 3.0"
...
This reverts commit ff3cf93405 .
Turns out distros only a year old still use CMake 2.8x
2015-11-10 02:53:10 +11:00
Campbell Barton
ff3cf93405
Increase CMake minimum version to 3.0
...
This allows us to use newer features of CMake, and less hassles having to test & support older versions.
2015-11-09 23:37:53 +11:00
Mike Erwin
c3cec828e8
ndof: rework Mac driver glue
...
Load driver dynamically at runtime instead of weak-linking the
3Dconnexion framework. Driver no longer needed at build time!
Works with really old drivers (as in PowerMac old), more recent
versions, and the latest which allows us to process events on a
separate thread.
2015-10-25 21:19:26 +01:00
Campbell Barton
6af043424d
Workaround for glew initialization bug
...
It turns out libGL from Intel crashes when calling glxewInit (where mesa, nvidia work fine),
unfortunately the only option without making larger changes to glew,
is to inline the parts of glew we're using - before the glx context is created.
2015-10-12 22:07:24 +11:00
Campbell Barton
9cea429f78
Fix T46431: Init glew before glx-context crashes
...
Initialize glxew before glew,
so we can check whats supported before creating the context.
This also removes need for mxIgnoreNoVersion.
2015-10-12 15:08:20 +11:00
Brecht Van Lommel
b098609186
Fix various compiler warnings.
2015-10-10 17:35:30 +02:00
Brecht Van Lommel
240f356166
Fix T45167: OS X inertial scrolling can lead to unexpected zooming.
...
Differential Revision: https://developer.blender.org/D1539
2015-10-10 14:00:02 +02:00
Brecht Van Lommel
a8dd0af8cf
Fix T46341: OS X trackpad and magic mouse gestures not working with 10.11 SDK.
...
Differential Revision: https://developer.blender.org/D1539
2015-10-10 14:00:02 +02:00
Campbell Barton
f42ae6c569
Fix/Workaround T46431: blender-softwaregl crashes
...
Order of initialization bug only impacted mesa's software-gl.
For now effectively revert support for glx-context-flags.
2015-10-10 19:39:35 +11:00
Brecht Van Lommel
d9d3a2a500
Fix T44605: OS X continuous grab issues.
2015-10-03 13:08:37 +02:00
Campbell Barton
84c44e026e
Fix leak in ContextGLX
2015-09-11 01:48:31 +10:00
Campbell Barton
d1d0f8eb1a
Cleanup: quiet warnings
2015-09-08 19:42:58 +10:00
Julian Eisel
ef629e0d50
Quiet warnings
...
We had too many warnings lately... was awaiting that someone would kill them - didn't happen -> goes to my commit ratio! :P
2015-09-04 01:04:37 +02:00
Campbell Barton
6e65185854
Fix for Ghost/OSX w/ core profile
2015-08-17 16:17:22 +10:00
Sergey Sharybin
dfc672f8bb
SCons: Fix for really nasty bug with polluting configuration environment
...
The issue was caused by the following construction:
def = env['SOMETHING']
defs.append('SOMETHING_MORE')
Since first assignment was actually referencing environment option it was totally
polluted hawing weird and wonderful side effects on all other areas of Blender.
2015-08-04 18:06:28 +02:00
Dalai Felinto
527ee3f1f1
Fix T45632: motion blur (2d filter) not working - in OSX at least
...
This regression was introduced in Blende 2.73a when we went through a
ghost context refactoring :(
2015-07-31 16:45:05 -03:00
Antony Riakiotakis
ed3b19f46d
Ugly hack to avoid GLEW context error printing when initializing GLX.
2015-07-20 14:56:36 +02:00
Antony Riakiotakis
bd28c25f9b
Fix broken GLEW initialization. Initialize GLEW twice, once to get GLX
...
extensions, once to get final context extensions.
Not so nice because we get a warning on startup from GLEW, but at least
it GL extensions should work now.
2015-07-20 12:35:58 +02:00
Antony Riakiotakis
422ffd252a
Pixel format selection now favours a format with a number of samples
...
closer to the one requested on Windows.
Patch D1384 by Benoit Bolsee.
2015-07-20 10:59:30 +02:00
Campbell Barton
86e6d6695e
GHOST/X11: Support GLX-Context flags
...
GHOST_ContextGLX was incomplete, ignoring profile-mask and profile-flags.
2015-07-20 13:32:20 +10:00
Campbell Barton
cd91fd655d
GHOST: use simple stack array for glx attributes
2015-07-20 11:45:42 +10:00
Campbell Barton
98bf205c39
GHOST: correct GLX flag w/ WITH_GL_PROFILE_CORE
...
note that this is currently ignored, but better at least build for now.
2015-07-20 11:32:49 +10:00
Campbell Barton
ecb3e0fe73
Cleanup: whitespace & break placement
2015-07-18 19:03:22 +10:00
Campbell Barton
086ae3ea04
Cleanup: whitespace, wrong indent level
2015-07-18 18:42:59 +10:00
Campbell Barton
72565fbf30
Cleanup: style, spelling
2015-07-06 17:45:11 +10:00
Antony Riakiotakis
626a287c89
Support debug contexts on win32
2015-07-02 20:06:02 +02:00
Antony Riakiotakis
00808eb39a
Make OpenGL debug contexts a flag --debug-gpu instead of a compile time
...
option.
This makes sense, since contexts get created at runtime, there is little
reason to require recompilation for this.
Only works on linux currently, will be doing more OSs later
2015-07-02 19:30:17 +02:00
Campbell Barton
d9046ccbd4
Cleanup: doxygen comments
2015-07-01 16:30:26 +10:00
Campbell Barton
45b2218341
User Prefs for NDOF dead-zone
...
D1344 with edits
2015-07-01 13:45:19 +10:00
Sergey Sharybin
9cefd5612d
GHost: Attempt to fix compilation error on older OSX systems
...
The issue was caused by using NotificationCenter which is only available
since 10.9 so trying to build blender on OSX with 10.7 SDK would fail.
Now it should be possible to build blender with SDK 10.7 and at the same
time official builds should still be doing proper weak-linking to a
notification center.
2015-06-14 14:36:05 +02:00
Antony Riakiotakis
dea3f7f5ff
GHOST get rid of unused warnings
2015-05-29 15:13:47 +02:00
Campbell Barton
f3161c97a6
Ghost/X11: allow creating windows to fail
...
Would exit, problematic for setting stereo3d modes which aren't always supported.
2015-05-28 18:46:15 +10:00
Campbell Barton
3dd346c2a1
Cleanup: warning
2015-05-28 18:46:14 +10:00
Campbell Barton
569a2035c7
GHOST: flush event printer output
2015-05-26 18:51:51 +10:00
Campbell Barton
f01c6e185f
Cleanup: typos
2015-05-23 22:38:47 +10:00
Campbell Barton
5d30c23c35
doxygen: corrections/updates
...
Also add depsgraph & physics
2015-05-20 14:12:22 +10:00
Brecht Van Lommel
c641a5563f
Fix T44612: add support for mouse button 6 and 7 on OS X.
2015-05-05 21:52:09 +02:00
Campbell Barton
d1f9fcaabc
Cleanup: style
2015-04-13 22:08:51 +10:00
Mike Erwin
55b7a8c027
ndof: fix Linux device detect regression
2015-04-12 19:58:17 -04:00
Campbell Barton
1b72ad0c3d
GHOST: don't instantiate assert arg
...
When debugging is disabled, function calls in an assert should never run.
2015-04-09 13:55:46 +10:00
Antony Riakiotakis
40984f6c86
Fix annoying warning in GHOST when ASSERT_ABORT is off
2015-04-08 13:00:46 +02:00
Campbell Barton
45e2366148
Cleanup: remove unused defines
2015-04-08 15:09:20 +10:00
Campbell Barton
808ea6271a
Cleanup: confusing if statements & alignment
2015-04-08 12:24:52 +10:00
Benoit Bolsee
d3388f0c7a
Fix compilation error in Win Debug.
2015-04-06 23:17:18 +02:00