Search Unity

Reliability of SupportsRenderTextureFormat

Discussion in 'Android' started by ArtyBoomshaka, Oct 16, 2017.

  1. ArtyBoomshaka

    ArtyBoomshaka

    Joined:
    Mar 5, 2013
    Posts:
    226
    Heya,

    For my project I'm running into an issue with SystemInfo.SupportsRenderTextureFormat not returning correct values.
    I have at least 2 instances where a call returns the opposite of what it should, leading to some gl errors when it should return false and disabled features that should be enabled when it should return true.

    In one case, on a ZTE Axon 7 Mini (B2017G) which, according to the app "Hardware Info" supports both GL_OES_texture_float and GL_OES_texture_float_linear (and the "half" variants) where calls to SystemInfo.SupportsRenderTextureFormat(RenderTextureFormat.ARGBFloat / RenderTextureFormat.ARGBHalf) return false.

    On the contrary, on a Samsung Galaxy S7 (SM-G930F) that doesn't seem to have any of those extensions, the same calls return true, leading to invalid operation errors when trying to glDrawElements in the subsequently bound texture.

    Sooo... What's up with that? I'm confused.
     
    caogtaa and entropicjoey1 like this.