Hello,

 

I was wondering if anyone had any experience of running clutter using a
16-bit OpenGL mode, I've been having an issue with clutter not
associating mouse clicks with reactive actors correctly on my target
platform and having dug down into the clutter code it seems that in
_clutter_do_pick the pixel that it is getting back from the call to
cogl_read_pixels is not being populated at all (as the default value it
is filled with is FFFFFFFF for the stage). Because of this, each mouse
click is being associated with the default stage.

 

The problem is also present in the clutter test apps as well as my own
code, particularly with the clutter-events test.

 

The output images from setting CLUTTER_PICK=dump-pick-buffers is showing
me that there is a defined area for the shapes I have on-screen (they
are rectangular ClutterTextures) however the colour of said buffers
appears to be the same (or at least a VERY similar purple colour). The
same code running on my windows PC (clutter compiled through MinGW)
works ok, but if I then switch my desktop mode to 16-bit (hopefully
forcing the app to run in a 16-bit mode) I get a whole bunch of
graphical corruption and then the following appears in my console output
multiple times:

 

(Clutter07.exe:3372): Clutter-WARNING **: The required ID of 4114 does
not refer to an existing actor; this usually implies that the pick() of
an actor is not correctly implemented or that there is an error in the
glReadPixels() implementation of the GL driver.

 

Delving deeper into the COGL code I found that in cogl_read_pixels it
calls glReadPixels but never checks the return value of this for any
errors - I wonder if there is perhaps an error at this point that is not
picking up?

 

Is clutter supposed to be able to support such a 16-bit mode (running in
R5G6B5) properly or am I on my own here?

 

Thanks in advance

 

Mark T

 

Mark Tucker

Senior Software Developer

[email protected]

_______________________________________________
clutter-app-devel-list mailing list
[email protected]
http://lists.clutter-project.org/listinfo/clutter-app-devel-list

Reply via email to