~linaro-graphics-wg/+junk/spandex-package

« back to all changes in this revision

Viewing changes to bd/lib/targets/gles2linux.py

  • Committer: Alexandros Frantzis
  • Date: 2012-05-15 15:14:33 UTC
  • mfrom: (1.1.2)
  • Revision ID: alexandros.frantzis@linaro.org-20120515151433-n38jul7kscz9r05h
* New upstream snapshot 1.1.6+git20120514.402b6166.
* debian/control:
  - Update Standards-Version to 3.9.3.
* debian/patches/egl_extensions_header_fix.patch:
  - Fix compilation with EGL.
* debian/patches/linux_targets.patch:
  - Refresh patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 
25
25
# ----------------------------------------------------------------------
26
26
def supportFeature( features ):
27
 
    return set( [ 'EGL' ] ).issuperset( features )
 
27
    return set( [ 'EGL_LIMITED',
 
28
                  'EGL_FULL' ] ).issuperset( features )
28
29
 
29
30
# ----------------------------------------------------------------------
30
31
def getScreenSize():
44
45
    colorSpace  = 'EGL_NONE'
45
46
    alphaFormat = 'EGL_NONE'
46
47
        
47
 
    a = getEglAttributes( api, SURFACE_WINDOW, attributes )
48
 
    s = [ 0, 0 ] + getScreenSize() + [ getScreenFormat() ] + [ 'EGL_NONE', colorSpace, alphaFormat ]
 
48
    windowAttributes  = [ 0, 0, ] + getScreenSize() + [ getScreenFormat() ]         
 
49
    configAttributes  = getEglAttributes( api, SURFACE_WINDOW, attributes )
 
50
    surfaceAttributes = [ 'EGL_NONE', colorSpace, alphaFormat ]
49
51
        
50
 
    state = eglInitializeWindow( Egl, indexTracker, api, s, a )
 
52
    state = eglInitializeWindow( Egl, indexTracker, api, windowAttributes, configAttributes, surfaceAttributes )
51
53
    Egl.SwapInterval( state[ 'displayIndex' ], 0 )
52
54
    
53
55
    return state