mesa: don't enable glVertexPointer() when using API_OPENGLES2.
authorPaul Berry <stereotype441@gmail.com>
Wed, 3 Oct 2012 21:20:17 +0000 (14:20 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 5 Oct 2012 22:55:47 +0000 (15:55 -0700)
commit78c9adb17e158ef40f03b5041803991ea8a0aa27
tree5f8a30c0d1614d15f3f0c8ec0d09731521281993
parente1cb50b15dbb75d1ba0fe184d05be7d302b058ee
mesa: don't enable glVertexPointer() when using API_OPENGLES2.

This function is only present in GLES1 and in the OpenGL compatibility
profile.

Fixes the following "make check" failure:

    [----------] 1 test from DispatchSanity_test
    [ RUN      ] DispatchSanity_test.GLES2
    Mesa warning: couldn't open libtxc_dxtn.so, software DXTn
    compression/decompression unavailable
    dispatch_sanity.cpp:122: Failure
    Value of: table[i]
       Actual: 0x4de54e
    Expected: (_glapi_proc) _mesa_generic_nop
    Which is: 0x41af72
    i = 321
    [  FAILED  ] DispatchSanity_test.GLES2 (4 ms)
    [----------] 1 test from DispatchSanity_test (4 ms total)

NOTE: This is a candidate for stable release branches.

Reviewed-by: Oliver McFadden <oliver.mcfadden@linux.intel.com>
Tested-by: Oliver McFadden <oliver.mcfadden@linux.intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
(cherry picked from commit 8f0b81bf7ddcdf5715a3e00af67395b91f27a243)
src/mesa/main/api_exec.c