1
0
mirror of https://github.com/lxsang/meta-rpi-diya.git synced 2025-08-01 21:50:55 +02:00

Compare commits

...

2 Commits

Author SHA1 Message Date
e07da1a7c0 use GLESv2 instead of GL 2023-07-19 15:38:38 +02:00
994356fdd5 use GLESv2 instead of GL 2023-07-19 15:36:41 +02:00
4 changed files with 4 additions and 5 deletions

View File

@ -20,7 +20,6 @@ IMAGE_INSTALL:append = "libcurl \
libgles2 \
libegl-mesa \
libgl-mesa \
mesa-gl \
libglapi \
libudev \
udev \

View File

@ -12,8 +12,8 @@ TARGET_CC_ARCH += "${LDFLAGS}"
do_compile() {
${CXX} ${WORKDIR}/sdl_test.cpp `pkg-config --cflags --libs sdl2` -o ${WORKDIR}/sdl_test
${CC} ${WORKDIR}/sdlgl.c `pkg-config --cflags --libs sdl2` -lGL -o ${WORKDIR}/sdlgl
${CC} ${WORKDIR}/sdlglshader.c `pkg-config --cflags --libs sdl2` -lGL -o ${WORKDIR}/sdlglshader
${CC} ${WORKDIR}/sdlgl.c `pkg-config --cflags --libs sdl2` -lGLESv2 -o ${WORKDIR}/sdlgl
${CC} ${WORKDIR}/sdlglshader.c `pkg-config --cflags --libs sdl2` -lGLESv2 -o ${WORKDIR}/sdlglshader
}
do_install() {

View File

@ -8,7 +8,7 @@
#include <assert.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_opengl.h>
#include <GL/gl.h>
#include <GLES/gl.h>
typedef int32_t i32;
typedef uint32_t u32;

View File

@ -8,7 +8,7 @@
#include <assert.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_opengl.h>
#include <GL/gl.h>
#include <GLES/gl.h>
typedef int32_t i32;
typedef uint32_t u32;