-
-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Emuelec 4.6 build error on Flycast libretro latest commit #859
Comments
Right: glBlitFramebuffer doesn't exist in GLES 2.0. Same for GL_READ_FRAMEBUFFER and GL_DRAW_FRAMEBUFFER. Note that standalone may compile fine but will certainly crash if this code is run. |
Fix libretro compile errors with GLES2 Fix black screen at runtime with gles 2.0 Issue #859
Fixed on master. As expected there were additional issues at runtime but I tested it successfully on a GLES 2.0 device. |
@flyinghead thx for the fast answer. It compiles but I noticed that for example Project justice/Moero! Justice Gakuen on libretro is not rendering the polygons correctly however in standalone version it works perfectly. Pls can you recheck it on your end? thx |
Is it a black screen or some other issue? |
@flyinghead no, when getting into the battle the fighters polygons and textures do not appear. The rest of the environment is there. You can see it in the pictures attached. Commit 1dd006d that was latest working fine hadn't any issue. Thx for your support and help :) |
Can you post a debug RA log? I thought you were compiling with GLES2 and HAVE_OPENGLES2 on (which means no support for GLES 3.x) but the odroid n2+ has a GLES 3.2 GPU. What may be happening is Flycast is using GLES 3 features but with some 3.x APIs missing. |
Hello Retroarch logs not working version from Jan 11th commit retroarch_notworking_flycast_2b70c73f8029c680fec1ee32fc88f09974c18381.log Attaching retroarch logs from working version from dec 16th commit 1dd006d retroarch_working_flycast_dec16_1dd006d846350e96a46949f1e07a900206ae7194.log thx!! |
I have confirmation that Flycast uses GLES 3.0 features:
However, based on your initial compilation errors, I assume that you compiled with GLES 2.0 headers and libraries only. And that means that some GLES 3.0 APIs aren't available. You need to compile with GLES 3 support: |
@flyinghead you did it :). Thx so much for your help and support. it is fixed now. |
* Updating version to 02a002d55b1117775b9b6cabec12010c06277a58 * Fixing compiling issue due to change on flycast code flyinghead/flycast#859 --------- Co-authored-by: kelvfimer <calvarro@gmail.com>
Please Note: This form is the minimum required information for submitting bugs.
Removing this form may lead to your issue being closed until it is completed.
Platform / OS / Hardware:
Emuelec 4.6/ ubuntu 20.04 / odroid n2+
Github hash:
6119465
Hardware:
Odroid n2+ with Emuelec 4.6 SDL 2.6.1 Retroarch 7213aada8d5fef72a93379a0d700bb1b678e4a70
When building Libretro Version of Flycast getting error
/home/kelv/EmuELEC/build.EmuELEC-Amlogic-ng.aarch64-4/build/flycast-611946559c12a569af507019694cb369b3587af6/core/rend/gles/gldraw.cpp: In function 'void writeFramebufferToVRAM()':
/home/kelv/EmuELEC/build.EmuELEC-Amlogic-ng.aarch64-4/build/flycast-611946559c12a569af507019694cb369b3587af6/core/rend/gles/gldraw.cpp:701:43: error: 'GL_READ_FRAMEBUFFER' was not declared in this scope; did you mean 'GL_READ_FRAMEBUFFER_NV'?
701 | gl.ofbo.framebuffer->bind(GL_READ_FRAMEBUFFER);
| ^~~~~~~~~~~~~~~~~~~
| GL_READ_FRAMEBUFFER_NV
/home/kelv/EmuELEC/build.EmuELEC-Amlogic-ng.aarch64-4/build/flycast-611946559c12a569af507019694cb369b3587af6/core/rend/gles/gldraw.cpp:702:48: error: 'GL_DRAW_FRAMEBUFFER' was not declared in this scope; did you mean 'GL_DRAW_FRAMEBUFFER_NV'?
702 | gl.fbscaling.framebuffer->bind(GL_DRAW_FRAMEBUFFER);
Standalone version compiles fine with no issues
Debugging Steps Tested
Logs Gathered
The text was updated successfully, but these errors were encountered: