Revision 073e5a7a
Added by Leszek Koltunski about 3 years ago
src/main/res/raw/main_vertex_shader.glsl | ||
---|---|---|
65 | 65 |
// second vec4: first float - cache, next 3: Center, the third - the Region. |
66 | 66 |
}; |
67 | 67 |
|
68 |
layout (packed) uniform componentAssociation
|
|
68 |
layout (std140) uniform componentAssociation
|
|
69 | 69 |
{ |
70 |
ivec2 vComAssoc[MAX_COMPON]; // component 'AND' and 'EQU' Associations
|
|
70 |
ivec4 vComAssoc[MAX_COMPON]; // component 'AND' and 'EQU' Associations
|
|
71 | 71 |
}; |
72 | 72 |
|
73 | 73 |
////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Another attempt at fixing tthings on early Qualcomm OpenGL ES 3.0 drivers.
The previous version does not work on Adreno 405 driver V@100, present for example in a Asus ZenPad 8.
Revert the packed 'ivec2' UBO in the vertex shader back to a 'std140' ivec4. This comes at a price if bumping into the bug on Qualcomm driver version 331 on Adreno 308 - i.e. Samsung Galaxy J4+ again.
On this platform, switch off Gigaminx and then set MAX_COMPONENTS to 98.