-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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
GLES2: Convert unsupported float texture types to 8-bit types #26943
GLES2: Convert unsupported float texture types to 8-bit types #26943
Conversation
Do not merge for now, it doesn't fix #26902 yet and might introduce bugs. Log output on my Samsung Galaxy S3 which also doesn't support float textures:
(no backtrace sadly) |
Finally managed to get a backtrace with a
|
5976a52
to
ac48334
Compare
Got it to work! Now the Platformer 3D demo starts on my Samsung Galaxy S3, I can hear the robots and the terrible reverb of that demo :) It then crashes at a different place, but I think it's unrelated to this PR and just another GLES2 bug for those drivers:
I'll try with a simpler demo with just a CurveTexture (which uses |
Tested on a simple demo with a CurveTexutre, seems to work fine! The Platformer 3D demo crashes on the S4 with above backtrace, but it's not related to this PR (this PR just fixes another crash that would happen before that). On the Pocophone, it works well when using the GodotPhysics backend (crashes inside Bullet otherwise...). |
I opened #26972 to follow-up on the other (unrelated) crash I'm getting after this PR. |
Converting, when unsupported:
as discussed with @reduz.
Aims at fixing #26902, but needs testing for confirmation.
Note that CurveTextures (which use
FORMAT_RF
) will no longer fail to load, but they will not work as expected. So e.g. a CPUParticles using a CurveTexture to change the scale will fail to render anything (but shouldn't crash). This should be addressed in a second step.