Markus Mohrhard
dde00f1f8a
make threaded rendering work correctly, fdo#81110
...
The context may only be bound in one thread!
Change-Id: Ibb67f88c2f11fd48884ee39d89620193e4e5471b
2014-07-13 07:54:09 +02:00
Noel Grandin
3e82897353
improve the inlinesimplememberfunctions clang plugin
...
Change-Id: I6d5a952901648e01904ef5c37f953c517304d31e
2014-06-17 10:55:17 +02:00
weigao
29eceedd7b
Modified the depth bit to 24
...
Change-Id: I57387f9250c0c62c3cab7a75571d001fef99fdb4
2014-06-10 15:58:25 +02:00
Markus Mohrhard
b2f412a395
Lsan: fix memory leak
...
Change-Id: I223e0587b5a82c1617a0e79a002472070d2d4402
2014-05-28 23:17:08 +02:00
Peter Senna Tschudin
3b24dcc8a8
Remove unnecessary semicolons
...
A simplified version of the semantic match that finds this problem is
follows: (http://coccinelle.lip6.fr/ )
// <smpl>
@r1@
statement S;
position p,p1;
@@
S@p1;@p
@script:python r2@
p << r1.p;
p1 << r1.p1;
@@
if p[0].line != p1[0].line_end:
cocci.include_match(False)
@@
position r1.p;
@@
-;@p
// </smpl>
Change-Id: Ib9708d37fbb4c6060f88d5dae3814a2d37b2091e
Reviewed-on: https://gerrit.libreoffice.org/9493
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
Tested-by: Noel Grandin <noelgrandin@gmail.com >
2014-05-27 01:19:00 -05:00
Markus Mohrhard
c68c5e753d
the variable is only available on linux
2014-05-23 03:02:32 +02:00
Markus Mohrhard
cfaa96546a
Lsan: fix memory leak
...
Change-Id: I82a517a267cceaac4dd1030d45c67fc070e22def
2014-05-23 02:50:42 +02:00
Jan Holesovsky
f72d85e6fa
Avoid blinking when doing operations in the spreadsheets.
...
Change-Id: I31d24ef32ef4bb9ea4b57d596cccd269d07d91ec
2014-05-21 10:36:54 +02:00
Jan Holesovsky
58cb649dbe
Don't disable painting.
...
Change-Id: Ia7d8a49af756a642c393f47b7dc342b8e48b5eda
2014-05-21 12:18:29 +02:00
David Tardon
eccaf91ec9
use VCL's OpenGLContext for 3D transitions
...
Change-Id: I510518461eb8bc9669d0de2679c34c473f66b175
2014-05-20 15:48:51 +02:00
Tor Lillqvist
c3ed5f6d33
Fail early in OpenGLContext::ImplInit() on platforms where not yet implemented
...
So far this code apparently has not been invoked except in the very
special use cases for which it has been developed, and which
presumably aren't such that one would come across in "normal"
LibreOffice use.
But now it gets invoked unconditionally, in some unit tests even, and
letting it call glewInit(), which calls glGetString(), without any
OpenGL context, leads to a crash. So instead, explicitly fail early on
OS X (and iOS and Android).
Change-Id: Ia4547cc1ddff1aaa0190fcdb69506ad444214b7a
2014-05-20 11:07:10 +03:00
Stephan Bergmann
498c314861
Hack to for now work around dpy == null crashing CppunitTest_chart2_*
...
...since 2fc4f5cd75
"Register OpenGL windows to
ScGridWindow upon file load." Should be revisited and fixed properly.
Change-Id: I5a3d08cb750fd9ec7c98d5b85250eaabd1c7a8b2
2014-05-20 09:41:59 +02:00
Markus Mohrhard
bc5c536559
add missing OpenGL type error string
...
Change-Id: I53a7eba4a4f8b1bd61381283b20190cfc05a138a
2014-05-17 09:12:00 +02:00
Markus Mohrhard
3ddae832bb
fix crash when glDebugMessageCallback is 0 despite feature being there
...
Change-Id: I1e6986e1e56f78f10f4677f471d2bdea2231f787
Reviewed-on: https://gerrit.libreoffice.org/9331
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk >
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk >
2014-05-12 15:54:24 +00:00
Markus Mohrhard
21130eaef9
we need glew initalized before testing through it for features
...
Change-Id: I4999de29b2a12888129ab291344b239b8def373c
2014-05-12 03:00:04 +02:00
Markus Mohrhard
7ffd1af722
move the renderToFile function to the helper to avoid the context
...
Change-Id: I5493126047179d67b2f2ed0d3d5d936ebbaf4810
2014-05-09 00:39:42 +02:00
Markus Mohrhard
6470b42ce8
chart2.opengl to vcl.opengl
...
Change-Id: Idd3b6ddec5ba2fbc56b7b9eb45ff379425104527
2014-05-09 00:39:42 +02:00
Markus Mohrhard
7ee5bd5b98
we only want a fb that allows window rendering
...
Change-Id: I13d58c941e6a2411c3840b9efd341a4b827afc93
2014-05-08 03:06:29 +02:00
Markus Mohrhard
720515987c
correct check for double buffered rendering
...
Change-Id: I52972cb477c77a86fa04aa876717db9740cc0113
2014-05-08 03:06:29 +02:00
Markus Mohrhard
657004ae5c
we only want fb configs that support double buffered rendering
...
Change-Id: I808e36ccd2a0d1ad89af2449d709d24a92ecff4f
2014-05-08 02:30:56 +02:00
Markus Mohrhard
81074d6080
fix the OpenGL offscreen rendering a bit
...
Change-Id: I1f11cdff0de48e3281a58aec9ea37a78c637195e
2014-05-06 07:25:49 +02:00
Markus Mohrhard
08a02bce23
sal_Bool to bool
...
Change-Id: I2febe40b1128eefa8838f3dc0836863ed96c0048
2014-05-06 07:25:48 +02:00
Jan Holesovsky
f585323f89
OpenGLContext: More error handling.
...
Change-Id: Ib92adfc83c963ecfcfa7fdbc2ec71f363a181330
2014-05-06 03:09:39 +02:00
Jan Holesovsky
d9fb35083d
OpenGLContext: Use the right window handle on Windows.
...
Change-Id: I77eaf1dad9ce4c855b5f88bd8568944fd4128227
2014-05-06 03:07:50 +02:00
Jan Holesovsky
fc4000a9be
openGL: More debug info.
...
Change-Id: Ia2e09c92673b97fd48c4ede7ebb9ff47da821926
2014-05-05 16:47:23 +02:00
Caolán McNamara
e1566d1a23
coverity#1210161 Uninitialized scalar variable
...
Change-Id: I393aadc30190177b75f7f6b723c000b583697c37
2014-04-29 17:17:54 +01:00
Caolán McNamara
9bd7e8f1d6
coverity#1210193 Uninitialized pointer field
...
Change-Id: I8d9ee48fa7fb08aa7488d891121078024b13bd71
2014-04-29 11:39:31 +01:00
Zolnai Tamás
4ee7708bc2
OpenGLContext: destroy context
...
Change-Id: Ia779045d93361a4ca4bfe5027958a04fdebd2ca1
2014-04-28 17:26:34 +02:00
Zolnai Tamás
039c9efa6d
Introduce OpenGLContext::MakeCurrent for switching between contexts
...
Change-Id: I00b06d1330241c4df3b07dc6e0019c49fd7aa521
2014-04-28 17:26:34 +02:00
Zolnai Tamás
99a034f914
OpenGLHelper: extract BGRA buffer -> BitmepEx conversion
...
Change-Id: I71edb2768d24f0c6686a9c94333447a5acc498b4
2014-04-27 20:27:59 +02:00
Tor Lillqvist
fb57e17251
WaE: implicit conversion of literal of type 'sal_Bool' to 'bool'
...
Change-Id: I259f3a192097fed449bbea28a18febccfd93db04
2014-04-27 19:26:41 +03:00
Zolnai Tamás
1bf5639cb3
Fix mac build: explicitly check all platforms inside swapBuffers
...
Plus some cosmetics
Change-Id: I42d989217a0b40a8a6a03c0ebc6c4aa14b34d387
2014-04-27 12:47:52 +02:00
Zolnai Tamás
e112ac81d1
First try to render OpenGL content in a window
...
Change-Id: Ibb7178330d356806cea2cfc972b361167d5a9340
2014-04-27 12:34:07 +02:00
Zolnai Tamás
4db3805a2d
OpenGLContext: use generateWinData inside window initialization
...
Change-Id: I618dacceb88ddab1ca6d45a8669199354e4b6a6d
2014-04-27 12:34:06 +02:00
Zolnai Tamás
d8719aa04a
OpenGLContext: Provide all data for SystemChildWindow creation.
...
Change-Id: I7a0ceee6c784af8240fb908f19622d4ede1f5a6a
2014-04-27 12:34:05 +02:00
Markus Mohrhard
ce9f9de197
move the opengl headers to vcl/opengl for better separation
...
Change-Id: I1bdd0fe0d27674da69a61bd8b438f0c9b050a337
2014-04-15 01:51:28 +02:00
Tor Lillqvist
7232a2d520
Make libvclopengl build for iOS
...
Change-Id: Id338d1fb8a1334fb4e984aff9494bab7f3c35dc1
2014-04-08 17:05:28 +03:00
Markus Mohrhard
b6e5907f5a
temporarily render to a file
...
Change-Id: Ibfc8101f261489bf11f990ea3fe6ae2e74b99df9
2014-04-08 04:38:23 +02:00
Markus Mohrhard
0869626e2b
improve the code for temporary OpenGl context
...
Change-Id: Ia66bf54539e67066a56bb50fb606e50e581bee73
2014-04-08 04:38:22 +02:00
Markus Mohrhard
ed649cc481
call glewInit in vcl's OpenGLContext just once
...
Change-Id: I9f9b50615e588e659c7fcdd016cf9ceb8407b974
2014-04-08 04:38:22 +02:00
Markus Mohrhard
b458c16a43
fix crash when passing external Window to OpenGLContext::init
...
The external window is not controlled by OpenGLContext so it is not
allowed to delete the window
Change-Id: Id2c79a3612cc875fd94b8cd1206b30af2f185875
2014-04-08 04:38:20 +02:00
Markus Mohrhard
8325b7b49e
prevent initializing the OpenGL context multiple times
...
Change-Id: I2ebdbcd51938bc1dc61693ac392eed5d5e497a8d
2014-04-08 04:38:20 +02:00
Markus Mohrhard
ee86c908d1
OSL_TRACE to SAL_INFO in opengl code
...
Change-Id: I7bdefec1cf941d1a51b7777639c0979387e1b436
2014-04-08 04:38:19 +02:00
Tor Lillqvist
50bf123ddb
Kill superfluous vertical whitespace
...
Change-Id: I81ce8fd7022bf283db668705efdfb0666f87bde9
2014-04-02 16:54:18 +03:00
Zolnai Tamás
d834be0dac
Init an opengl context bounded to an existent window.
...
Via ViewObjectContact can we query a window.
It seems this window is the same which is used
by chart edit mode.
Change-Id: Ib6df4d58730774f3d86b453b8174a78bb2c8a45b
2014-03-21 14:00:56 +01:00
Markus Mohrhard
418edcf057
fix multisample support in OpenGL
...
Change-Id: I7e530f5ae8d83d275df554781847b525b38bf4c7
2014-03-17 08:24:14 +01:00
Markus Mohrhard
5d42bbdcf8
windows fixes for opengl
...
Change-Id: I2ee3bcf9f87b46c14af26adb82eabd43d9164adb
2014-03-17 08:13:50 +01:00
Markus Mohrhard
6495015702
no need for OpenGLRender in OpenGLContext anymore
...
Change-Id: I8506bcea49792cd1ef6ca451ca515b4669326c29
2014-03-17 08:13:49 +01:00
Markus Mohrhard
3aa298e010
move the windows multisample code to OpenGLContext
...
Change-Id: I531d058ff00b3b6eaf2bf7c889589058b1be7bd0
2014-03-17 08:13:49 +01:00
Markus Mohrhard
40ea5e9dd0
Revert "Move OpenGLRender to vcl"
...
This reverts commit 04b70c682e
.
The OpenGLRender is not abstract enough for vcl. Leave it in chart2.
Conflicts:
chart2/source/view/inc/DummyXShape.hxx
chart2/source/view/main/OpenGLRender.hxx
vcl/Library_vclopengl.mk
Change-Id: I5392c8ee34462ff49059126ca2284d8ebe1eb379
2014-03-17 08:13:49 +01:00