Giter Site home page Giter Site logo

Comments (2)

liming0791 avatar liming0791 commented on July 30, 2024 1

@ptitSeb
Finally, I find the problem has nothing to do with the GLES 1.1 context creation.

I use GLSurfaceView in JAVA code to create GLES 1.1 context.

Although the error log shows every time when the app runs :

E/libEGL: call to OpenGL ES API with no current context (logged once per thread)
E/libEGL: call to OpenGL ES API with no current context (logged once per thread)

In fact the opengl functions can work fine.

The problem is some other bugs and have nothing to do with gl4es.

Sorry about that ...

Besides, I find that GL_TEXTURE_RECTANGLE_ARB does not work with gl4es, while GL_TEXTURE_2D works fine.

from gl4es.

ptitSeb avatar ptitSeb commented on July 30, 2024

I haven't checked the entire source code but I suspect the issue is with the GLES 1.1 context creation.

There is a limit of gl4es on Android for now: there is no real glX support, so gl4es is not abble to create the GLES 1.1 context by itself.
Most (all?) existing use of gl4es on Android use SDL or SDL2 and let it create that context.

So you have to create a GLES 1.1 context before calling any gl function in your Android app.

(the gl itself looks fine and should run in gl4es)

from gl4es.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.