Skip to content

Commit

Permalink
Merge pull request xenia-project#475 from sephiroth99/varfix
Browse files Browse the repository at this point in the history
VS2015 Update 1 fix + GLContext small cleanup
  • Loading branch information
benvanik committed Dec 4, 2015
2 parents 0024094 + e8296a8 commit 4bac581
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
10 changes: 5 additions & 5 deletions src/xenia/debug/ui/debug_window.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1245,13 +1245,13 @@ void DebugWindow::DrawBreakpointsPane() {
if (has_any_call_filter && !call_rankings[i].second) {
continue;
}
auto export = all_exports[call_rankings[i].first];
if (export->type != cpu::Export::Type::kFunction ||
!export->is_implemented()) {
auto export_entry = all_exports[call_rankings[i].first];
if (export_entry->type != cpu::Export::Type::kFunction ||
!export_entry->is_implemented()) {
continue;
}
// TODO(benvanik): skip unused kernel calls.
ImGui::PushID(export);
ImGui::PushID(export_entry);
// TODO(benvanik): selection, hover info (module name, ordinal, etc).
bool is_pre_enabled = false;
bool is_post_enabled = false;
Expand All @@ -1275,7 +1275,7 @@ void DebugWindow::DrawBreakpointsPane() {
ImGui::SameLine();
ImGui::Dummy(ImVec2(4, 0));
ImGui::SameLine();
ImGui::Text(export->name);
ImGui::Text(export_entry->name);
ImGui::Dummy(ImVec2(0, 1));
ImGui::PopID();
}
Expand Down
2 changes: 1 addition & 1 deletion src/xenia/ui/gl/gl_context.cc
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ void GLContext::BeginSwap() {

void GLContext::EndSwap() {
SCOPE_profile_cpu_i("gpu", "xe::ui::gl::GLContext::EndSwap");
SwapBuffers(dc());
SwapBuffers(dc_);
}

} // namespace gl
Expand Down
2 changes: 0 additions & 2 deletions src/xenia/ui/gl/gl_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ class GLContext : public GraphicsContext {
public:
~GLContext() override;

HDC dc() const { return dc_; }

ImmediateDrawer* immediate_drawer() override;

bool is_current() override;
Expand Down

0 comments on commit 4bac581

Please sign in to comment.