commits
This function is like GPU_CopyImageFromSurface, but enable to copy only part
of the surface to the texture, using an optional pointer to GPU_Rect as
a new argument.
I've also reindent some code
Signed-off-by: matthias <uso.cosmo.ray@gmail.com>
fix issue #213
The problem seems to occur when sdl-gpu is installed, then CMakeList
was calling include_directories cmake function with SDL path before adding
project include/, So /usr/include/SDL had an higher priority than
sdl-gpu includes, and so it was using old versions,
which didn't have default_textured_vertex_shader_id.
Signed-off-by: matthias <uso.cosmo.ray@gmail.com>
* Use -s USE_SDL=2, do not try to find_package(SDL2 REQUIRED)
* Disable DEFAULT_DISABLE_GLES_1 which is not supported
This reverts commit f5b4afdec6cf19f4980ebf0e6eba0c9b4752f07c.
fix issue #213
The problem seems to occur when sdl-gpu is installed, then CMakeList
was calling include_directories cmake function with SDL path before adding
project include/, So /usr/include/SDL had an higher priority than
sdl-gpu includes, and so it was using old versions,
which didn't have default_textured_vertex_shader_id.
Signed-off-by: matthias <uso.cosmo.ray@gmail.com>