Bug 68331

Summary: Using glDrawElements with GL_UNSIGNED_INT type in draw_border
Product: Wayland Reporter: Stanislav Vorobiov <sheffmail>
Component: westonAssignee: Wayland bug list <wayland-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: 1.0.x   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Stanislav Vorobiov 2013-08-20 13:13:01 UTC
weston's draw_border function uses glDrawElements with type = GL_UNSIGNED_INT, according to GLESv2 standard this type is not supported in this call
Comment 1 Kristian Høgsberg 2013-08-29 06:06:29 UTC
Ah, right and mesa implements GL_OES_element_index_uint which is why it works here.  Pushed to master:

commit 73db924ad314fcaa1030725aa46686c57b0933b8
Author: Kristian Høgsberg <krh@bitplanet.net>
Date:   Wed Aug 28 23:05:29 2013 -0700

    gl-renderer: Use GL_UNSIGNED_SHORT for index array type
    
    GL_UNSIGNED_INT is only supported when GL_OES_element_index_uint is
    available (mesa implements that extension).  We don't need 32-bit
    indices, so just use GL_UNSIGNED_SHORT.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.