Skip to content

Commit

Permalink
more fixes ig
Browse files Browse the repository at this point in the history
  • Loading branch information
technicaljicama committed Aug 8, 2023
1 parent 7eb3efc commit 3057a47
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Binary file added MEMSIZE=-1
Binary file not shown.
Binary file added MEMSIZE=64
Binary file not shown.
2 changes: 1 addition & 1 deletion platform/psp/godot_psp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
#include <GL/glut.h>

PSP_MODULE_INFO("GODOTP", PSP_MODULE_USER, 1, 1);
PSP_MAIN_THREAD_ATTR(PSP_THREAD_ATTR_USER | THREAD_ATTR_VFPU);
// PSP_MAIN_THREAD_ATTR(PSP_THREAD_ATTR_USER | THREAD_ATTR_VFPU);
PSP_HEAP_SIZE_KB(-1);

int main(int argc, char *argv[]) {
Expand Down
2 changes: 1 addition & 1 deletion platform/psp/os_psp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,6 @@ void OS_PSP::swap_buffers() {
OS_PSP::OS_PSP() {
AudioDriverManagerSW::add_driver(&audio_driver);
//adriver here
// _render_thread_mode=RENDER_THREAD_SAFE;;
_render_thread_mode=RENDER_THREAD_SAFE;;
grab = false;
};
6 changes: 3 additions & 3 deletions platform/psp/rasterizer_psp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -595,17 +595,17 @@ void RasterizerPSP::texture_allocate(RID p_texture,int p_width, int p_height,Ima
if (scale_textures) {
texture->alloc_width = po2_width;
texture->alloc_height = po2_height;
// print_line("scale because npo2: "+itos(npo2_textures_available)+" mm: "+itos(p_format&VS::TEXTURE_FLAG_MIPMAPS)+" "+itos(p_mipmap_count) );
print_line("scale because npo2: "+itos(npo2_textures_available)+" mm: "+itos(p_format&VS::TEXTURE_FLAG_MIPMAPS) );
} else {

texture->alloc_width = texture->width;
texture->alloc_height = texture->height;
};

if (!(p_flags & VS::TEXTURE_FLAG_VIDEO_SURFACE)) {
/*if (!(p_flags & VS::TEXTURE_FLAG_VIDEO_SURFACE)) {
texture->alloc_height = MAX(1, texture->alloc_height / 2);
texture->alloc_width = MAX(1, texture->alloc_width / 2);
}
}*/

// texture->gl_components_cache = components;
texture->gl_format_cache = format;
Expand Down

0 comments on commit 3057a47

Please sign in to comment.