Bug 68331 - Using glDrawElements with GL_UNSIGNED_INT type in draw_border
Summary: Using glDrawElements with GL_UNSIGNED_INT type in draw_border
Status: RESOLVED FIXED
Alias: None
Product: Wayland
Classification: Unclassified
Component: weston (show other bugs)
Version: 1.0.x
Hardware: Other All
: medium normal
Assignee: Wayland bug list
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-20 13:13 UTC by Stanislav Vorobiov
Modified: 2013-08-29 06:06 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.