1
0
mirror of https://github.com/lxsang/meta-rpi-diya.git synced 2024-11-08 06:28:23 +01:00

disable non working opengl code

This commit is contained in:
DanyLE 2023-07-19 17:13:17 +02:00
parent 86a7359b2a
commit 05bb45256d
2 changed files with 5 additions and 6 deletions

View File

@ -120,7 +120,7 @@ int main(int ArgCount, char **Args)
printf("Vertex Array ID %d\n", VertexArrayID);
// Create and compile our GLSL program from the shaders
GLuint programID = load_shader();
GLfloat tmp_buffer[9];
// GLfloat tmp_buffer[9];
static const GLfloat g_vertex_buffer_data[] = {
-1.0f,
-1.0f,
@ -138,9 +138,10 @@ int main(int ArgCount, char **Args)
glGenBuffers(1, &vertexbuffer);
glBindBuffer(GL_ARRAY_BUFFER, vertexbuffer);
glBufferData(GL_ARRAY_BUFFER, sizeof(g_vertex_buffer_data), g_vertex_buffer_data, GL_STATIC_DRAW);
printf("Buffer ID %d of size: %d\n", vertexbuffer, sizeof(tmp_buffer));
// printf("Buffer ID %d of size: %d\n", vertexbuffer, sizeof(tmp_buffer));
// read back buffer data
memset(tmp_buffer, 0, sizeof(tmp_buffer));
// memset(tmp_buffer, 0, sizeof(tmp_buffer));
/*
glGetBufferSubData(GL_ARRAY_BUFFER, 0,sizeof(tmp_buffer), tmp_buffer );
printf("Read back buffer data: \n");
@ -148,6 +149,7 @@ int main(int ArgCount, char **Args)
{
printf("%d: %.2f\n", i, tmp_buffer[i]);
}
*/
glGetIntegerv(GL_ARRAY_BUFFER_BINDING, &currid);
printf("current id: %d\n",currid);
while (Running)

View File

@ -1,3 +0,0 @@
PACKAGECONFIG += " gles "
PACKAGECONFIG:remove = " x11 wayland "
DEPENDS:remove = " libxi "