texture format changes in order to support Apple devices

changing texture format from RGBA64 to RGBA48 so it is supported on both iOS and Android devices.
This commit is contained in:
onelsonic 2021-07-17 14:47:55 +02:00 committed by GitHub
parent bfde181da6
commit fda2ac8505
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -369,7 +369,7 @@ class Inc {
t.width = 0;
t.height = 0;
t.displayp = getDisplayp();
t.format = "RGBA64";
t.format = "RGBA48";
t.scale = getSuperSampling();
t.depth_buffer = "main";
path.createRenderTarget(t);
@ -524,7 +524,7 @@ class Inc {
public static inline function getHdrFormat(): String {
#if rp_hdr
return "RGBA64";
return "RGBA48";
#else
return "RGBA32";
#end