Skip to content

Commit

Permalink
mantle: add grWsiWinReleaseFullscreenOwnership semi-stub
Browse files Browse the repository at this point in the history
fixes BF4 fullscreen
  • Loading branch information
libcg committed Dec 10, 2021
1 parent 0d15776 commit 6a0e4d8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
16 changes: 16 additions & 0 deletions src/mantle/mantle_wsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,22 @@ GR_RESULT GR_STDCALL grWsiWinTakeFullscreenOwnership(
return GR_SUCCESS;
}

GR_RESULT GR_STDCALL grWsiWinReleaseFullscreenOwnership(
GR_WSI_WIN_DISPLAY display)
{
LOGT("%p\n", display);
GrWsiWinDisplay* grWsiWinDisplay = (GrWsiWinDisplay*)display;

if (grWsiWinDisplay == NULL) {
return GR_ERROR_INVALID_HANDLE;
} else if (GET_OBJ_TYPE(grWsiWinDisplay) != GR_OBJ_TYPE_WSI_WIN_DISPLAY) {
return GR_ERROR_INVALID_OBJECT_TYPE;
}

LOGW("semi-stub\n"); // TODO finish
return GR_SUCCESS;
}

GR_RESULT GR_STDCALL grWsiWinCreatePresentableImage(
GR_DEVICE device,
const GR_WSI_WIN_PRESENTABLE_IMAGE_CREATE_INFO* pCreateInfo,
Expand Down
7 changes: 0 additions & 7 deletions src/mantle/stub.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,13 +208,6 @@ GR_VOID GR_STDCALL grCmdDbgMarkerEnd(

// WSI Functions

GR_RESULT GR_STDCALL grWsiWinReleaseFullscreenOwnership(
GR_WSI_WIN_DISPLAY display)
{
LOGW("STUB\n");
return GR_UNSUPPORTED;
}

GR_RESULT GR_STDCALL grWsiWinSetGammaRamp(
GR_WSI_WIN_DISPLAY display,
const GR_WSI_WIN_GAMMA_RAMP* pGammaRamp)
Expand Down

0 comments on commit 6a0e4d8

Please sign in to comment.