imx6 Linux3.0.35(L3.0.35_4.1.0_130816) run i.MX6 Graphics SDK Sample ,the GLES2.0 Samples run failed and GLES1.1 OpenVG run ok.
about failed info :
1、build GLES2.0 samples for FBDEV
2、GLES2.0 Samples run failed log :
root@freescale /mnt/mmc/GLES20_fbdev$ ./01_SimpleTriangle
01_SimpleTriangle: SimpleTriangle.c:283: main: Assertion `init()' failed.
Aborted
root@freescale /mnt/mmc/GLES20_fbdev$
And debug this error found glCompileShader() run failed,why?
if use PrecomplieShader(not run glCompileShader()),sample run ok.
L3.0.35_4.1.0_130816 BSP not support GLES2.0?Only support GLES1.1?
Regards,
forrest
Hi forest,
You can refer to Compile IMX6_GPU_SDK with L3.0.35_1.1.0 and L3.0.35_4.0.0 in our community. Hope it can help you.
Have a great day,
Dan
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Mark Correct button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Thank a lot,but the problem still exitsts.
Reference "Compile IMX6_GPU_SDK with L3.0.35_1.1.0 and L3.0.35_4.0.0",On imx6 Linux3.0.35(L3.0.35_4.1.0_130816) still only run GLES1.1 and OpenVG Samples.
run GLES2.0 Sample for FBDEV still failed,Eg. run 01_SimpleTriangle
$./01_SimpleTriangle
$ glCompileShader error
$ 01_SimpleTriangle: SimpleTriangle.c:283: main: Assertion `init()' failed.
$ Aborted
in SimpleTriangle.c
// Compile the shaders GLuint hVertexShader = glCreateShader( GL_VERTEX_SHADER ); glShaderSource( hVertexShader, 1, &g_strVertexShader, NULL ); glCompileShader( hVertexShader ); // Check for compile success GLint nCompileResult = 0; glGetShaderiv( hVertexShader, GL_COMPILE_STATUS, &nCompileResult ); if( 0 == nCompileResult ) { char strLog[1024]; GLint nLength; glGetShaderInfoLog( hVertexShader, 1024, &nLength, strLog ); printf("glCompileShader error \n"); return FALSE; } |
The Shader Compile failed,why? need other config?