mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-22 06:13:45 -07:00
Merge branch 'HarbourMasters:develop' into develop
This commit is contained in:
commit
8022ce4736
2 changed files with 10 additions and 6 deletions
|
@ -673,7 +673,11 @@ static void gfx_opengl_resize_framebuffer(int fb, uint32_t width, uint32_t heigh
|
||||||
|
|
||||||
void gfx_opengl_set_framebuffer(int fb)
|
void gfx_opengl_set_framebuffer(int fb)
|
||||||
{
|
{
|
||||||
glClipControl(GL_UPPER_LEFT, GL_NEGATIVE_ONE_TO_ONE); // Set origin to upper left corner, to match N64 and DX11
|
if (GLEW_ARB_clip_control || GLEW_VERSION_4_5) {
|
||||||
|
// Set origin to upper left corner, to match N64 and DX11
|
||||||
|
// If this function is not supported, the texture will be upside down :(
|
||||||
|
glClipControl(GL_UPPER_LEFT, GL_NEGATIVE_ONE_TO_ONE);
|
||||||
|
}
|
||||||
glBindFramebuffer(GL_FRAMEBUFFER_EXT, fb);
|
glBindFramebuffer(GL_FRAMEBUFFER_EXT, fb);
|
||||||
|
|
||||||
glDepthMask(GL_TRUE);
|
glDepthMask(GL_TRUE);
|
||||||
|
@ -687,7 +691,9 @@ void gfx_opengl_reset_framebuffer(void)
|
||||||
glBindFramebuffer(GL_FRAMEBUFFER, 0);
|
glBindFramebuffer(GL_FRAMEBUFFER, 0);
|
||||||
|
|
||||||
glBindFramebuffer(GL_FRAMEBUFFER_EXT, framebuffer);
|
glBindFramebuffer(GL_FRAMEBUFFER_EXT, framebuffer);
|
||||||
glClipControl(GL_LOWER_LEFT, GL_NEGATIVE_ONE_TO_ONE);
|
if (GLEW_ARB_clip_control || GLEW_VERSION_4_5) {
|
||||||
|
glClipControl(GL_LOWER_LEFT, GL_NEGATIVE_ONE_TO_ONE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void gfx_opengl_select_texture_fb(int fbID)
|
void gfx_opengl_select_texture_fb(int fbID)
|
||||||
|
|
|
@ -2321,9 +2321,7 @@ s32 func_8083501C(Player* this, GlobalContext* globalCtx) {
|
||||||
if ((!Player_HoldsHookshot(this) || func_80834FBC(this)) && !func_80834758(globalCtx, this) &&
|
if ((!Player_HoldsHookshot(this) || func_80834FBC(this)) && !func_80834758(globalCtx, this) &&
|
||||||
!func_80834F2C(this, globalCtx)) {
|
!func_80834F2C(this, globalCtx)) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
} else if (this->rideActor != NULL) {
|
||||||
else
|
|
||||||
{
|
|
||||||
this->unk_6AD = 2; // OTRTODO: THIS IS A BAD IDEA BUT IT FIXES THE HORSE FIRST PERSON?
|
this->unk_6AD = 2; // OTRTODO: THIS IS A BAD IDEA BUT IT FIXES THE HORSE FIRST PERSON?
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue