Search Unity

Render texture Create Failed

Discussion in 'Windows' started by sfjohansson, Mar 11, 2016.

  1. sfjohansson

    sfjohansson

    Joined:
    Mar 12, 2013
    Posts:
    293
    Hi,
    I'm developing on mac and trying to make a windows build, the app works perfectly fine in the editor on mac but when I launch the standalone build on windows I get the error:

    RenderTexture.Create failed: format unsupported.

    The format I have set in the editor is RGB656 and no depth buffer.
    The size is 1920 x 1080

    Has anybody seen this before?

    Cheers

    Stefan
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    6,443
    Hi,

    you should be able to use SystemInfo.SupportsRenderTextureFormat() to find out whether render texture format is supported on a particular machine. If it's not, you should fallback to the default render texture format. In your case, you cannot render to RGB656 textures on DirectX.
     
    DKaraush likes this.
  3. sfjohansson

    sfjohansson

    Joined:
    Mar 12, 2013
    Posts:
    293
    Thanks, for the heads up. I Did solve it at the time by changing the render texture format as you advice, went for ARGB32. Maybe a few notes in the docs would be helpful for others who venture into the same problem.
     
  4. Rich_A

    Rich_A

    Joined:
    Nov 22, 2016
    Posts:
    170
    How do you change render texture format?