@@ -1420,7 +1420,7 @@ void OGL_DrawRect( int ulx, int uly, int lrx, int lry, float *color )
14201420 OGL_UpdateViewport ();
14211421 glEnable ( GL_SCISSOR_TEST );
14221422#else // !__GX__
1423- GX_SetScissor ((u32 ) 0 ,(u32 ) 0 ,(u32 ) OGL .width + 1 ,(u32 ) OGL .height + 1 ); // Disable Scissor
1423+ GX_SetScissor ((u32 ) 0 ,(u32 ) 0 ,(u32 ) OGL .width ,(u32 ) OGL .height ); // Disable Scissor
14241424 GX_SetCullMode (GX_CULL_NONE );
14251425 Mtx44 GXprojection;
14261426 guMtxIdentity (GXprojection);
@@ -1992,7 +1992,8 @@ void OGL_GXinitDlist()
19921992// VIDEO_WaitVSync();
19931993
19941994 OGL .frameBufferTextures = glN64_useFrameBufferTextures;
1995- OGL .enable2xSaI = glN64_use2xSaiTextures;
1995+ OGL .enable2xSaI = glN64_use2xSaiTextures;
1996+ OGL .forceBilinear = glN64_use2xSaiTextures;
19961997
19971998 // init primeDepthZtex, Ztexture, AlphaCompare, and Texture Clamping
19981999 TextureCache_UpdatePrimDepthZtex ( 1 .0f );
@@ -2077,12 +2078,12 @@ void OGL_GXclearEFB()
20772078 GX_SetAlphaCompare (GX_ALWAYS ,0 ,GX_AOP_AND ,GX_ALWAYS ,0 );
20782079 GX_SetFog (GX_FOG_NONE ,0.1 ,1.0 ,0.0 ,1.0 ,(GXColor){0 ,0 ,0 ,255 });
20792080 GX_SetViewport ((f32 ) OGL .GXorigX ,(f32 ) OGL .GXorigY ,(f32 ) OGL .GXwidth ,(f32 ) OGL .GXheight , 0 .0f , 1 .0f );
2080- GX_SetScissor ((u32 ) 0 ,(u32 ) 0 ,(u32 ) OGL .width + 1 ,(u32 ) OGL .height + 1 ); // Disable Scissor
2081+ GX_SetScissor ((u32 ) 0 ,(u32 ) 0 ,(u32 ) OGL .width ,(u32 ) OGL .height ); // Disable Scissor
20812082// GX_SetScissor(0,0,rmode->fbWidth,rmode->efbHeight);
20822083 GX_SetCullMode (GX_CULL_NONE );
20832084 Mtx44 GXprojection;
20842085 guMtxIdentity (GXprojection);
2085- guOrtho (GXprojection, 0 , OGL .height - 1 , 0 , OGL .width - 1 , 0 .0f , 1 .0f );
2086+ guOrtho (GXprojection, 0 , OGL .height , 0 , OGL .width , 0 .0f , 1 .0f );
20862087 GX_LoadProjectionMtx (GXprojection, GX_ORTHOGRAPHIC );
20872088 GX_LoadPosMtxImm (OGL .GXmodelViewIdent ,GX_PNMTX0 );
20882089
@@ -2095,13 +2096,13 @@ void OGL_GXclearEFB()
20952096 GX_SetVtxAttrFmt (GX_VTXFMT0 , GX_VA_CLR0 , GX_CLR_RGBA , GX_RGBA8 , 0 );
20962097 f32 ZmaxDepth = (f32 ) -0xFFFFFF /0x1000000 ;
20972098 GX_Begin (GX_QUADS , GX_VTXFMT0 , 4 );
2098- GX_Position3f32 (- 1 .0f , - 1 .0f , ZmaxDepth);
2099+ GX_Position3f32 (0 .0f , 0 .0f , ZmaxDepth);
20992100 GX_Color4u8 (OGL .GXclearColor .r , OGL .GXclearColor .g , OGL .GXclearColor .b , OGL .GXclearColor .a );
2100- GX_Position3f32 ((f32 ) OGL .width + 1 , - 1 .0f , ZmaxDepth);
2101+ GX_Position3f32 ((f32 ) OGL .width , 0 .0f , ZmaxDepth);
21012102 GX_Color4u8 (OGL .GXclearColor .r , OGL .GXclearColor .g , OGL .GXclearColor .b , OGL .GXclearColor .a );
2102- GX_Position3f32 ((f32 ) OGL .width + 1 ,(f32 ) OGL .height + 1 , ZmaxDepth);
2103+ GX_Position3f32 ((f32 ) OGL .width ,(f32 ) OGL .height , ZmaxDepth);
21032104 GX_Color4u8 (OGL .GXclearColor .r , OGL .GXclearColor .g , OGL .GXclearColor .b , OGL .GXclearColor .a );
2104- GX_Position3f32 (- 1 .0f ,(f32 ) OGL .height + 1 , ZmaxDepth);
2105+ GX_Position3f32 (0 .0f ,(f32 ) OGL .height , ZmaxDepth);
21052106 GX_Color4u8 (OGL .GXclearColor .r , OGL .GXclearColor .g , OGL .GXclearColor .b , OGL .GXclearColor .a );
21062107 GX_End ();
21072108
0 commit comments