mirror of
https://github.com/joel16/VITA-Homebrew-Sorter.git
synced 2024-11-23 03:19:42 +00:00
imGui: Fix compile errors
This commit is contained in:
parent
c3a4e9332a
commit
11c304baff
1
.gitignore
vendored
1
.gitignore
vendored
@ -42,3 +42,4 @@ cmake_install.cmake
|
||||
VITA-Homebrew-Sorter
|
||||
*.vpk
|
||||
*.sfo
|
||||
eboot.bin
|
||||
|
@ -89,10 +89,10 @@ target_link_libraries(${PROJECT_NAME}
|
||||
)
|
||||
|
||||
## Create Vita files
|
||||
vita_create_self(${PROJECT_NAME}.self ${PROJECT_NAME} UNSAFE)
|
||||
vita_create_self(eboot.bin ${PROJECT_NAME} UNSAFE)
|
||||
# The FILE directive lets you add additional files to the VPK, the syntax is
|
||||
# FILE src_path dst_path_in_vpk. In this case, we add the LiveArea paths.
|
||||
vita_create_vpk(${PROJECT_NAME}.vpk ${VITA_TITLEID} ${PROJECT_NAME}.self
|
||||
vita_create_vpk(${PROJECT_NAME}.vpk ${VITA_TITLEID} eboot.bin
|
||||
VERSION ${VITA_VERSION}
|
||||
NAME ${VITA_APP_NAME}
|
||||
FILE sce_sys/icon0.png sce_sys/icon0.png
|
||||
|
@ -7,8 +7,8 @@
|
||||
#include "applist.h"
|
||||
#include "config.h"
|
||||
#include "fs.h"
|
||||
#include "imgui_impl_vitagl.h"
|
||||
#define IMGUI_DEFINE_MATH_OPERATORS
|
||||
#include "imgui_impl_vitagl.h"
|
||||
#include "imgui_internal.h"
|
||||
#include "loadouts.h"
|
||||
#include "sqlite3.h"
|
||||
|
@ -12,7 +12,7 @@ std::vector<Tex> icons;
|
||||
namespace Textures {
|
||||
constexpr int max_textures = 7;
|
||||
|
||||
static bool Create(unsigned char *data, GLint format, Tex &texture) {
|
||||
static bool Create(unsigned char *data, GLint format, Tex &texture) {
|
||||
// Create a OpenGL texture identifier
|
||||
glGenTextures(1, &texture.id);
|
||||
glBindTexture(GL_TEXTURE_2D, texture.id);
|
||||
@ -22,6 +22,9 @@ namespace Textures {
|
||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
|
||||
|
||||
// Upload pixels into texture
|
||||
#if defined(GL_UNPACK_ROW_LENGTH) && !defined(__EMSCRIPTEN__)
|
||||
glPixelStorei(GL_UNPACK_ROW_LENGTH, 0);
|
||||
#endif
|
||||
glTexImage2D(GL_TEXTURE_2D, 0, format, texture.width, texture.height, 0, format, GL_UNSIGNED_BYTE, data);
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user