summaryrefslogtreecommitdiff
path: root/src/video_core
diff options
context:
space:
mode:
authorarchshift <admin@archshift.com>2014-05-19 15:21:55 -0700
committerarchshift <admin@archshift.com>2014-05-19 15:21:55 -0700
commit034e3aabc81219ca3804bfa6483d6667c3ab5679 (patch)
tree1e4745afa663a04ff53044d8333a8519314c775a /src/video_core
parent403e4bf837c47c7e10dc006fafffea8c160c890f (diff)
Improved clarity and whitespace
Changed QGL version to 3,2 in order to be less restrictive, yet it should still change up to 4,1 on OSX on Qt5.
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/utils.cpp6
-rw-r--r--src/video_core/video_core.cpp1
2 files changed, 4 insertions, 3 deletions
diff --git a/src/video_core/utils.cpp b/src/video_core/utils.cpp
index a90fc183b..b94376ac1 100644
--- a/src/video_core/utils.cpp
+++ b/src/video_core/utils.cpp
@@ -20,13 +20,13 @@ void DumpTGA(std::string filename, int width, int height, u8* raw_data) {
TGAHeader hdr;
FILE* fout;
u8 r, g, b;
-
+
memset(&hdr, 0, sizeof(hdr));
hdr.datatypecode = 2; // uncompressed RGB
hdr.bitsperpixel = 24; // 24 bpp
hdr.width = width;
hdr.height = height;
-
+
fout = fopen(filename.c_str(), "wb");
fwrite(&hdr, sizeof(TGAHeader), 1, fout);
for (int i = 0; i < height; i++) {
@@ -41,4 +41,4 @@ void DumpTGA(std::string filename, int width, int height, u8* raw_data) {
}
fclose(fout);
}
-} // namespace \ No newline at end of file
+} // namespace
diff --git a/src/video_core/video_core.cpp b/src/video_core/video_core.cpp
index 5f1933b1e..cbd540bdf 100644
--- a/src/video_core/video_core.cpp
+++ b/src/video_core/video_core.cpp
@@ -30,6 +30,7 @@ void Start() {
/// Initialize the video core
void Init(EmuWindow* emu_window) {
+ // Known problem with GLEW prevents contexts above 2.x on OSX unless glewExperimental is enabled.
glewExperimental = GL_TRUE;
g_emu_window = emu_window;