android shader link error

Discussion of issues specific to mobile platforms such as iOS, Android, Symbian and Meego.
mikefalk
Gnoblar
Posts: 11
Joined: Mon Oct 15, 2012 11:30 am

android shader link error

Post by mikefalk »

On android 4.0 when I add any compositor I get only black screen and a log message like this:

Code: Select all

 Vertex Program:Ogre/Compositor/StdQuad_GLSLES_vp Fragment Program:Ogre/Compositor/B&W_GLSLES_FP
        GLSL link result :
        P1202: Texture's gl states do not match with shader's
User avatar
Wolfmanfx
OGRE Team Member
OGRE Team Member
Posts: 1525
Joined: Fri Feb 03, 2006 10:37 pm
Location: Austria - Leoben
x 100

Re: android shader link error

Post by Wolfmanfx »

This error is tegra specific one i guess can you add more infor which device which gpu?
mikefalk
Gnoblar
Posts: 11
Joined: Mon Oct 15, 2012 11:30 am

Re: android shader link error

Post by mikefalk »

acer iconia tab - tegra 2, samsung galaxy tab - tegra 2, asus eee pad - tegra 3
mikefalk
Gnoblar
Posts: 11
Joined: Mon Oct 15, 2012 11:30 am

Re: android shader link error

Post by mikefalk »

I can't found the reason of the message, but I found the topic with similar problem. Render system can't draw the texture on the screen quad because of string "filtering linear linear linear" in compositor's material. When I changed it to "filtering linear linear none" the compositor started to work.
User avatar
cose
Halfling
Posts: 46
Joined: Thu Jul 24, 2008 5:48 pm
Location: Marseille

Re: android shader link error

Post by cose »

i know this thread is old, but for the next readers,
the problem seems about the texture format bound in fragment shaders, ex on tegra this will fail and generate this error if the texture is format PF_B8G8R8A8
and problem will disappear if texture is : PF_A8R8G8B8.