[VITA] GL fixes
This commit is contained in:
parent
84de78e7c9
commit
f976078ef2
|
@ -2095,7 +2095,7 @@ ifeq ($(HAVE_MATH_NEON), 1)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(HAVE_VITAGL), 1)
|
ifeq ($(HAVE_VITAGL), 1)
|
||||||
DEFINES += -DHAVE_VITAGL -DTRANSPOSE_MATRICES
|
DEFINES += -DHAVE_VITAGL -DSTB_DXT_IMPLEMENTATION -DSKIP_ERROR_HANDLING
|
||||||
INCLUDE_DIRS += -I$(DEPS_DIR)/vitaGL/source
|
INCLUDE_DIRS += -I$(DEPS_DIR)/vitaGL/source
|
||||||
SOURCES := $(DEPS_DIR)/vitaGL/source $(DEPS_DIR)/vitaGL/source/utils
|
SOURCES := $(DEPS_DIR)/vitaGL/source $(DEPS_DIR)/vitaGL/source/utils
|
||||||
OBJ += $(patsubst %.c,%.o,$(foreach dir,$(SOURCES), $(wildcard $(dir)/*.c)))
|
OBJ += $(patsubst %.c,%.o,$(foreach dir,$(SOURCES), $(wildcard $(dir)/*.c)))
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
TARGET := retroarch_vita
|
TARGET := retroarch_vita
|
||||||
DEBUG ?= 0
|
DEBUG ?= 0
|
||||||
|
HAVE_FILE_LOGGER = 1
|
||||||
GRIFFIN_BUILD = 0
|
GRIFFIN_BUILD = 0
|
||||||
WHOLE_ARCHIVE_LINK = 0
|
WHOLE_ARCHIVE_LINK = 0
|
||||||
|
|
||||||
|
@ -181,6 +182,10 @@ vpksend: $(TARGET).vpk
|
||||||
send: $(TARGET).self
|
send: $(TARGET).self
|
||||||
curl -T $< ftp://$(PSVITAIP):1337/ux0:/app/$(VITA_TITLE_ID)/eboot.bin
|
curl -T $< ftp://$(PSVITAIP):1337/ux0:/app/$(VITA_TITLE_ID)/eboot.bin
|
||||||
|
|
||||||
|
launch: $(TARGET).self
|
||||||
|
curl -T $< ftp://$(PSVITAIP):1337/ux0:/app/$(VITA_TITLE_ID)/eboot.bin
|
||||||
|
echo "launch $(VITA_TITLE_ID)" | nc ${PSVITAIP} 1338
|
||||||
|
|
||||||
.PHONY: clean all send vpksend
|
.PHONY: clean all send vpksend
|
||||||
.PRECIOUS: %.depend
|
.PRECIOUS: %.depend
|
||||||
|
|
||||||
|
|
|
@ -112,6 +112,8 @@ static void gfx_display_gl1_draw(gfx_display_ctx_draw_t *draw,
|
||||||
draw->coords->tex_coord = gfx_display_gl1_get_default_tex_coords();
|
draw->coords->tex_coord = gfx_display_gl1_get_default_tex_coords();
|
||||||
if (!draw->coords->lut_tex_coord)
|
if (!draw->coords->lut_tex_coord)
|
||||||
draw->coords->lut_tex_coord = gfx_display_gl1_get_default_tex_coords();
|
draw->coords->lut_tex_coord = gfx_display_gl1_get_default_tex_coords();
|
||||||
|
if (!draw->texture)
|
||||||
|
return;
|
||||||
|
|
||||||
gfx_display_gl1_viewport(draw, gl1);
|
gfx_display_gl1_viewport(draw, gl1);
|
||||||
|
|
||||||
|
@ -146,7 +148,6 @@ static void gfx_display_gl1_draw(gfx_display_ctx_draw_t *draw,
|
||||||
for (i = 0; i < draw->coords->vertices; i++)
|
for (i = 0; i < draw->coords->vertices; i++)
|
||||||
{
|
{
|
||||||
memcpy(&vertices3[i*3], &draw->coords->vertex[i*2], sizeof(float) * 2);
|
memcpy(&vertices3[i*3], &draw->coords->vertex[i*2], sizeof(float) * 2);
|
||||||
vertices3[i*3] -= 0.5f;
|
|
||||||
vertices3[i*3+2] = 0.0f;
|
vertices3[i*3+2] = 0.0f;
|
||||||
}
|
}
|
||||||
glVertexPointer(3, GL_FLOAT, 0, vertices3);
|
glVertexPointer(3, GL_FLOAT, 0, vertices3);
|
||||||
|
|
|
@ -273,7 +273,6 @@ static void gl1_raster_font_draw_vertices(gl1_raster_t *font,
|
||||||
int i;
|
int i;
|
||||||
for (i = 0; i < coords->vertices; i++) {
|
for (i = 0; i < coords->vertices; i++) {
|
||||||
memcpy(&vertices3[i*3], &coords->vertex[i*2], sizeof(float) * 2);
|
memcpy(&vertices3[i*3], &coords->vertex[i*2], sizeof(float) * 2);
|
||||||
vertices3[i*3] -= 0.5f;
|
|
||||||
vertices3[i*3+2] = 0.0f;
|
vertices3[i*3+2] = 0.0f;
|
||||||
}
|
}
|
||||||
glVertexPointer(3, GL_FLOAT, 0, vertices3);
|
glVertexPointer(3, GL_FLOAT, 0, vertices3);
|
||||||
|
|
Loading…
Reference in New Issue