Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
Citra2018
Commits
45c165d9
Commit
45c165d9
authored
Aug 07, 2017
by
Libretro-Admin
Committed by
James
Sep 27, 2018
Browse files
Set HW_SHARED_CONTEXT
parent
2d250dbf
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
externals/libretro/libretro.h
View file @
45c165d9
This diff is collapsed.
Click to expand it.
src/citra_libretro/citra_libretro.cpp
View file @
45c165d9
...
...
@@ -328,6 +328,8 @@ bool retro_load_game(const struct retro_game_info *info) {
LibRetro
::
settings
.
file_path
=
info
->
path
;
LibRetro
::
SetHWSharedContext
();
if
(
!
LibRetro
::
SetPixelFormat
(
RETRO_PIXEL_FORMAT_XRGB8888
))
{
LOG_CRITICAL
(
Frontend
,
"XRGB8888 is not supported."
);
LibRetro
::
DisplayMessage
(
"XRGB8888 is not supported."
);
...
...
src/citra_libretro/environment.cpp
View file @
45c165d9
...
...
@@ -24,6 +24,10 @@ void UploadVideoFrame(const void* data, unsigned width,
return
video_cb
(
data
,
width
,
height
,
pitch
);
}
bool
SetHWSharedContext
()
{
return
environ_cb
(
RETRO_ENVIRONMENT_SET_HW_SHARED_CONTEXT
,
NULL
);
}
void
PollInput
()
{
return
input_poll_cb
();
}
...
...
src/citra_libretro/environment.h
View file @
45c165d9
...
...
@@ -26,6 +26,8 @@ void PollInput();
/// Sets the environmental variables used for settings.
bool
SetVariables
(
const
retro_variable
vars
[]);
bool
SetHWSharedContext
(
void
);
/// Fetches a variable by key name.
std
::
string
FetchVariable
(
std
::
string
key
,
std
::
string
def
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment