expo-2d-context icon indicating copy to clipboard operation
expo-2d-context copied to clipboard

'GL_ARB_explicit_attrib_location' is not supported

Open bisk8s opened this issue 4 years ago • 0 comments

Everything is fine with iOS, but when I open the same page on Android, I've got the following error:

Running application on Google Pixel.
ERROR: 0:2: '' :  extension 'GL_ARB_explicit_attrib_location' is not supported
ERROR: 0:1: '' :  version '150' is not supported
ERROR: 0:2: '' :  extension 'GL_ARB_explicit_attrib_location' is not supported

There is any workarround or option for this?

here goes the code:

import React from 'react'
import { StyleSheet, KeyboardAvoidingView, Image } from 'react-native'
import { GLView } from 'expo-gl'

import Expo2DContext from 'expo-2d-context'

export default function Performance () {

  function handleOnGLContextCreate (gl) {
    const context = new Expo2DContext(gl)
  }

  return (
    <KeyboardAvoidingView style={styles.container} behavior="padding" enabled={true}>
      <GLView style={styles.graph}
        onContextCreate={handleOnGLContextCreate}
      />
    </KeyboardAvoidingView>
  )
}

const styles = StyleSheet.create({
  container: {
    flex: 1
  },
  graph: {
    flex: 1,
    margin: 50
  }
})

bisk8s avatar Feb 07 '20 20:02 bisk8s