Commit 45c165d9 authored by Libretro-Admin's avatar Libretro-Admin Committed by James
Browse files

Set HW_SHARED_CONTEXT

parent 2d250dbf
This diff is collapsed.
......@@ -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.");
......
......@@ -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();
}
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment