[compiz] grid plugin isn't drawn correctly

Bug #798099 reported by Alexandros Frantzis
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Unity GLES port
Fix Released
Low
Ricardo Salveti

Bug Description

When dragging a window to the edge of the screen, an orange rectangle should be drawn to indicate that the window will be tiled there. Using the latest packages from unity-3d-gles on the panda, the rectangle is not drawn correctly (only the upper triangle is drawn, see attached image).

FWIW, I am using the latest sgx drivers from omap-trunk

Revision history for this message
Alexandros Frantzis (afrantzis) wrote :
description: updated
Revision history for this message
Ricardo Salveti (rsalveti) wrote :

I ported the initial version of the grid plugin to GLES, here's the patch: http://bazaar.launchpad.net/~linaro-graphics-wg/unity-gles/compiz/view/head:/debian/patches/088_grid_work_with_gles.patch

Probably a bug while setting the vertex data.

Changed in unity-gles:
status: New → Confirmed
importance: Undecided → Low
Revision history for this message
Jammy Zhou (jammy-zhou) wrote :

Hi Ricardo,

streamingBuffer->begin () is using "GL_TRIANGLES" by default, so only one triangle is rendered when you specify four vertices. Please use "streamingBuffer->begin (GL_TRIANGLE_STRIP);" in your patch, which should be able to solve this problem.

Revision history for this message
Ricardo Salveti (rsalveti) wrote :

Hey Jammy!

Yeah, just tested your suggestion and it indeed fixes the issue :-) I'm just uploading a new package.

Thanks man!

Revision history for this message
Ricardo Salveti (rsalveti) wrote :

Fixed released with 2:0.9.5+git20110613+a2f1e47-3.

Changed in unity-gles:
assignee: nobody → Ricardo Salveti (rsalveti)
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.