diff options
Diffstat (limited to 'src/video_core')
| -rw-r--r-- | src/video_core/utils.cpp | 6 | ||||
| -rw-r--r-- | src/video_core/video_core.cpp | 1 |
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) { | |||
| 20 | TGAHeader hdr; | 20 | TGAHeader hdr; |
| 21 | FILE* fout; | 21 | FILE* fout; |
| 22 | u8 r, g, b; | 22 | u8 r, g, b; |
| 23 | 23 | ||
| 24 | memset(&hdr, 0, sizeof(hdr)); | 24 | memset(&hdr, 0, sizeof(hdr)); |
| 25 | hdr.datatypecode = 2; // uncompressed RGB | 25 | hdr.datatypecode = 2; // uncompressed RGB |
| 26 | hdr.bitsperpixel = 24; // 24 bpp | 26 | hdr.bitsperpixel = 24; // 24 bpp |
| 27 | hdr.width = width; | 27 | hdr.width = width; |
| 28 | hdr.height = height; | 28 | hdr.height = height; |
| 29 | 29 | ||
| 30 | fout = fopen(filename.c_str(), "wb"); | 30 | fout = fopen(filename.c_str(), "wb"); |
| 31 | fwrite(&hdr, sizeof(TGAHeader), 1, fout); | 31 | fwrite(&hdr, sizeof(TGAHeader), 1, fout); |
| 32 | for (int i = 0; i < height; i++) { | 32 | for (int i = 0; i < height; i++) { |
| @@ -41,4 +41,4 @@ void DumpTGA(std::string filename, int width, int height, u8* raw_data) { | |||
| 41 | } | 41 | } |
| 42 | fclose(fout); | 42 | fclose(fout); |
| 43 | } | 43 | } |
| 44 | } // namespace \ No newline at end of file | 44 | } // 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() { | |||
| 30 | 30 | ||
| 31 | /// Initialize the video core | 31 | /// Initialize the video core |
| 32 | void Init(EmuWindow* emu_window) { | 32 | void Init(EmuWindow* emu_window) { |
| 33 | // Known problem with GLEW prevents contexts above 2.x on OSX unless glewExperimental is enabled. | ||
| 33 | glewExperimental = GL_TRUE; | 34 | glewExperimental = GL_TRUE; |
| 34 | 35 | ||
| 35 | g_emu_window = emu_window; | 36 | g_emu_window = emu_window; |