[DX, Mac] Allow Viewports to translate above the top of the screen (#985)

* Update gfx_direct3d11.cpp

* Update gfx_metal.cpp

* Update gfx_direct3d_common.h

* Update gfx_direct3d11.cpp

* Update gfx_metal.h

* Update gfx_metal.cpp
This commit is contained in:
MegaMech
2026-01-22 23:53:49 -05:00
committed by GitHub
parent 8c55f607f2
commit 41eeeb247e
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -163,8 +163,7 @@ class GfxRenderingAPIDX11 final : public GfxRenderingAPI {
struct ShaderProgramD3D11* mShaderProgram;
// uint32_t current_width, current_height;
uint32_t mRenderTargetHeight;
int32_t mRenderTargetHeight;
int mCurrentFramebuffer;
FilteringMode mCurrentFilterMode = FILTER_NONE;
+1 -1
View File
@@ -203,7 +203,7 @@ class GfxRenderingAPIMetal final : public GfxRenderingAPI {
int mCurrentTile;
uint32_t mCurrentTextureIds[SHADER_MAX_TEXTURES];
uint32_t mRenderTargetHeight;
int32_t mRenderTargetHeight;
int mCurrentFramebuffer;
size_t mCurrentVertexBufferOffset;
FilteringMode mCurrentFilterMode = FILTER_THREE_POINT;