From 05bb45256dc327a63a153c892b381a1ba2e64188 Mon Sep 17 00:00:00 2001 From: DanyLE Date: Wed, 19 Jul 2023 17:13:17 +0200 Subject: [PATCH] disable non working opengl code --- recipes-example/example/files/sdlglshader.c | 8 +++++--- recipes-graphics/freeglut/freeglut_%.bbappend | 3 --- 2 files changed, 5 insertions(+), 6 deletions(-) delete mode 100644 recipes-graphics/freeglut/freeglut_%.bbappend diff --git a/recipes-example/example/files/sdlglshader.c b/recipes-example/example/files/sdlglshader.c index 0cbe781..4869f58 100644 --- a/recipes-example/example/files/sdlglshader.c +++ b/recipes-example/example/files/sdlglshader.c @@ -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) diff --git a/recipes-graphics/freeglut/freeglut_%.bbappend b/recipes-graphics/freeglut/freeglut_%.bbappend deleted file mode 100644 index 25c5a2f..0000000 --- a/recipes-graphics/freeglut/freeglut_%.bbappend +++ /dev/null @@ -1,3 +0,0 @@ -PACKAGECONFIG += " gles " -PACKAGECONFIG:remove = " x11 wayland " -DEPENDS:remove = " libxi " \ No newline at end of file