Commit Graph

25393 Commits

Author SHA1 Message Date
07a50012b9 egl: Only allow GLES2 context creation for the GLES2 driver
Previously, Cogl was advertising the GLES2 context feature whenever
the EGL winsys was used, even if the winsys was used with the GL
driver. This wasn't working because when the GL context is created the
API is set to GL with eglBindAPI and it is never changed back to GLES
when the GLES2 context is created. That meant that the created context
is actually GL not GLES2. Any rendering would then fail because the GL
context does not understand the precision statement.

It could be possible to fix it so that it will set the API correctly
before creating the context. It would then also need to reset the API
and unbind the previous context whenever switching between GLES2 and
GL contexts. If the context isn't unbound first then eglMakeCurrent
will actually try to bind both contexts at the same time and at least
Mesa detects this situation and reports that the two contexts
conflict. Presumably we would also need to do something more clever
when we retrieve the function pointers for the GLES2 context.
Currently we just copy them from the CoglContext but if the context is
using the GL driver then this would mean the functions came from libGL
not libGLESv2.

Reviewed-by: Robert Bragg <robert@linux.intel.com>

(cherry picked from commit 624dea207cf76ae9ccd7f57c4ebd15d3bd65bff0)
2012-10-01 15:05:11 +01:00
4a4d8153f8 [l10n] Updated Italian translation. 2012-09-29 18:02:19 +02:00
092389132e [l10n] Updated Italian translation. 2012-09-29 17:36:45 +02:00
9563799655 Fix the terminator in one of the extension lists
The list of extension names in COGL_EXT_BEGIN should be a zero
separated list of strings which is terminated by an empty string. The
name for the GL_ARB_shader_objects extension was missing the zero
separator so presumably it was relying on the following byte to happen
to be a zero in order not to crash.

Reviewed-by: Robert Bragg <robert@linux.intel.com>

(cherry picked from commit f63381f23fa8b0b17e030561940b8a38efff221f)
2012-09-28 17:15:11 +01:00
f9e7f8df94 winsys-glx: Remove the vblank counter feature when indirect rendering
Previously when Cogl detects that the GLX context is indirect it
resets the function pointers for the VBLANK_COUNTER feature to NULL.
However it wasn't removing the VBLANK_COUNTER feature flag. Some other
parts of the winsys check for that feature flag rather than checking
whether the pointer is NULL so it would end up calling an invalid
function pointer and crashing. This just fixes it to also clear the
feature flag.

https://bugzilla.gnome.org/show_bug.cgi?id=684917

Reviewed-by: Robert Bragg <robert@linux.intel.com>

(cherry picked from commit e947c713a541086f80a308d22774229f0720196a)
2012-09-28 17:15:11 +01:00
ffbf3d47fc [l10n] Update Japanese translation 2012-09-28 20:36:21 +09:00
a87fd7aae4 Update Visual C++ projects
-Make things a bit cleaner by generating clutter.def in the intermediate
 build folder
-Fix the include paths as config.h is now in clutter/
-Make things a little bit more consistent between vs9 and vs10 in terms of
 the "install" stage
2012-09-28 18:59:27 +08:00
cfdc1c95eb Clean up Visual C++ projects
Since commit 7253c5ca (Bug 682071-cogl/cogl-sdl.h: MSVC: Link to SDL when
apps are built), on Visual C++ we link to SDL.lib and SDLmain.lib using
a #pragma comment directive in cogl/cogl-sdl.h, so we no longer need
specific project configs for Cogl programs which build against a Cogl built
with SDL.  This removes those unneeded configs.

Also "install" cogl/cogl-sdl.h when Cogl is built with the SDL winsys, as
it is a needed header
2012-09-28 18:45:41 +08:00
c0e9d9235a Update Visual C++ projects
-Make "install" parts for VS9 and VS10 more consistent with each other
-Create the .def files in the respective intermediate/.obj folders, so that
 it is cleaner duringg the build
-Make up for missed files to "install"
2012-09-28 17:14:28 +08:00
244ee67284 Updated Lithuanian translation 2012-09-27 22:06:21 +03:00
3dd87cbf54 Updated Serbian translation 2012-09-27 05:45:39 +02:00
7938458eb8 window-actor: Don't create a mask texture unnecessarily
Mask texture resources may be expensive. Don't create one
if we don't need to, like on an unshaped window without
a frame.

https://bugzilla.gnome.org/show_bug.cgi?id=681676
2012-09-26 13:53:14 -03:00
e2ad3cb86b Updated Belarusian translation. 2012-09-26 15:09:36 +03:00
248182d3d1 Updated Latvian translation 2012-09-26 12:02:54 +03:00
e3373e7cb3 Updated Greek translation 2012-09-26 11:21:43 +03:00
30d3f1a7d3 Update French translation 2012-09-26 08:48:27 +02:00
441e4cf8f6 Updated Indonesian translation 2012-09-26 09:00:39 +07:00
696f1afc04 actor: Fix transform-set condition
The :transform-set property is set if the matrix in :transform is not
the identity matrix.
2012-09-25 09:12:54 +01:00
165e117028 Bump version to 3.6.0
Update NEWS
3.6.0
2012-09-24 22:41:08 +02:00
21b32dbe7a Updated Latvian translation 2012-09-24 23:25:05 +03:00
ab011c44ac Post-release version bump to 1.12.1 2012-09-24 17:46:10 +01:00
075aa21b3a Release Clutter 1.12.0 2012-09-24 17:27:05 +01:00
65bedbe42c docs: Fix typo in closing tag 2012-09-24 17:21:36 +01:00
35faaf604c x11: set the stage for core events with no associated stage
When the last touch has been released the stage on the
corresponding master device (eg. the virtual core pointer) is set
to NULL and no mouse events can be delivered until an ENTER event
has occurred and the stage pointer restored.

This is due to the fact that the master devices can send both
touch events and mouse events, forwarding events coming from the
attached slave devices.

To restore delivery of mouse events we need to ensure that the
stage is set on each ButtonPress, ButtonRelease and Motion event
coming from master devices.

https://bugzilla.gnome.org/show_bug.cgi?id=684509
2012-09-24 17:08:24 +01:00
a6abf86e94 input-device: print device number in debug messages
https://bugzilla.gnome.org/show_bug.cgi?id=684530
2012-09-24 17:04:08 +01:00
d587fa4e28 tests: print coords and devices in test-events
Print event coordinates on events other than motion and also track
the device and source device ids in ./tests/interactive/test-events

https://bugzilla.gnome.org/show_bug.cgi?id=684552
2012-09-24 17:03:36 +01:00
a8fa6c7c4d Post-release version bump to 1.12.1 2012-09-24 14:19:41 +01:00
fe198cf424 Merge branch 'cogl-1.12-release' into cogl-1.12 2012-09-24 14:08:22 +01:00
b1aafcc15f Release 1.12.0 (release) 2012-09-24 13:46:40 +01:00
d32bbaf0e0 Updates NEWS for the 1.12.0 release 2012-09-24 13:46:01 +01:00
95ad4ce2ef Updated Russian translation
(cherry picked from commit c34e8bb0ca44c90d05753e6790727a462d7fd732)
2012-09-24 13:38:18 +01:00
8a533157b7 [l10n] Updated German translation
(cherry picked from commit b9afd31baabf1e139f51e6042104ab0904e77488)
2012-09-24 13:38:09 +01:00
b6ffa02d2f Update zh_CN translation
(cherry picked from commit 7003bd0bf092ea38eab4491ecb56cb8db155190a)
2012-09-24 13:37:55 +01:00
eb18e471ef Updated Malayalam file
(cherry picked from commit 9cdaf2e8e13c9b255343357e95038e1881578bf7)
2012-09-24 13:37:38 +01:00
6e9ae288e1 [l10n] Update Japanese translation
(cherry picked from commit 857f9d336ba1940211becfdd637dcfe08b52e079)
2012-09-24 13:37:28 +01:00
59e6078454 updated Tamil translation
(cherry picked from commit af265ab5d2e2f2dab8294c549e872ef3b2fdf1d3)
2012-09-24 13:37:18 +01:00
19fa0efb72 updated Tamil translation
(cherry picked from commit 1b7743f0c29981b4d91ca9faa16fa4543662c2a7)
2012-09-24 13:37:07 +01:00
700e7df85d Updated Bulgarian translation
(cherry picked from commit 93d7defa7fbb1a9ccb56beef882699008b7b9d44)
2012-09-24 13:36:53 +01:00
fc0c3c8be7 hindi update
(cherry picked from commit 38201324e9543fa4c4b613829b6c1199778f02d5)
2012-09-24 13:36:42 +01:00
7253c5ca29 Bug 682071-cogl/cogl-sdl.h: MSVC: Link to SDL when apps are built
Link to SDL.lib and SDLmain.lib if Cogl was built with the SDL winsys.

Recent changes to the SDL winsys introduced a direct dependency to
SDLmain.lib (and hence SDL.lib) when programs are built, causing linker
errors to appear when any programs using cogl (with the SDL winsys built
in) are built.

Since we cannot determine whether a Cogl build is built with the SDL winsys
at build time easily, we could use #pragma comment (lib, ...) whenever
cogl-sdl.h is included by cogl.h so that SDLmain.lib and SDL.lib is linked
into the resulting binary, so that the program can link and run correctly.

This does not add any external dependencies as the Cogl DLL already depends
on SDL.dll when it is built with the SDL winsys.

https://bugzilla.gnome.org/show_bug.cgi?id=682071

(cherry picked from commit 2921d2a4d9c79f1ca7530171e0dfa8c945607bc7)
2012-09-24 13:35:18 +01:00
e3e53f2c70 [l10n]Updated Catalan (Valencian) translation
(cherry picked from commit 829e090deb5decbeb60519c26199a403ae8174b0)
2012-09-24 13:35:05 +01:00
192920e351 [l10n] Updated Catalan translation
(cherry picked from commit 1a39fb66c1531ef53c8a700fc85bde1fb97bc624)
2012-09-24 13:34:53 +01:00
ed32a052e7 Updated Danish translation
(cherry picked from commit bb5220dbd98517544d0ff8676061024fd8a361f3)
2012-09-24 13:34:42 +01:00
32cb4a178e [l10n] Updated Estonian translation 2012-09-24 10:56:42 +03:00
7b69780d9a Finnish translation update by Jiri Grönroos 2012-09-24 09:29:55 +03:00
be500e33f9 [l10n] Update Japanese translation 2012-09-24 12:55:14 +09:00
427c5cc42b Updated Belarusian translation. 2012-09-23 13:28:13 +03:00
042677b920 Updated Bulgarian translation 2012-09-23 12:17:28 +03:00
cdb91a461d Updated Japanese translation. 2012-09-23 17:50:31 +09:00
00f5e1286b Updated Malayalam file 2012-09-23 01:45:51 +05:30