Skip to content

GLES2 texture2D issue #39

@jasonjk192

Description

@jasonjk192

Hi, I'm using Unity 2022.3.58f1 with 0.7.3 and I noticed that when including GLES2 (compat reasons), I can't build for Android.

I dug around a bit and found the issue with this function:
half4 KawaseBlurFilterCustom(Texture2D blurTexture, float2 uv, float offset, float2 texelSize) ....

and I simply did:

#if SHADER_API_GLES
half4 KawaseBlurFilterCustom(sampler2D blurTexture, float2 uv, float offset, float2 texelSize) ....
#else
half4 KawaseBlurFilterCustom(Texture2D blurTexture, float2 uv, float offset, float2 texelSize)
#endif

So, this fixed the issue on my end. Has anyone else experienced this issue with GLES2?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions