diff options
author | Ton Roosendaal <ton@blender.org> | 2005-11-11 14:42:54 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-11-11 14:42:54 +0300 |
commit | 6a2413cbb4d4e6e88674b6e92885a2fc81409bcf (patch) | |
tree | cc2fd59b1e23789087696453ff88db57a614d955 /intern | |
parent | d7ed26e3c6293c70fd01ae2e86e313529fea076d (diff) |
Removal of ugly_nvidia_hack for OSX Nvidia systems. Apple has fixed this
bug in 10.4.3 now.
Diffstat (limited to 'intern')
-rw-r--r-- | intern/bmfont/intern/BMF_BitmapFont.cpp | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/intern/bmfont/intern/BMF_BitmapFont.cpp b/intern/bmfont/intern/BMF_BitmapFont.cpp index 6af8e9eaa2c..bbba2c978dd 100644 --- a/intern/bmfont/intern/BMF_BitmapFont.cpp +++ b/intern/bmfont/intern/BMF_BitmapFont.cpp @@ -69,35 +69,11 @@ BMF_BitmapFont::~BMF_BitmapFont(void) { } -#ifdef __APPLE__ -#include <stdio.h> -static int is_a_really_crappy_nvidia_card(void) { - static int well_is_it= -1; - - /* Do you understand the implication? Do you? */ - if (well_is_it==-1) { - well_is_it= (strncmp((char *)glGetString(GL_RENDERER), "NVIDIA GeForce 6800", 18) == 0); - } - return well_is_it; -} -#endif - void BMF_BitmapFont::DrawString(char* str) { GLint alignment; unsigned char c; -#ifdef __APPLE__ - GLint vp[4]; // hack stuff - GLubyte nullm = 0; // hack stuff - - if(is_a_really_crappy_nvidia_card()) { - glGetIntegerv(GL_VIEWPORT, vp); // hack stuff - - glBitmap(1, 1, 0, 0, -vp[0], vp[1], &nullm); - - } -#endif glGetIntegerv(GL_UNPACK_ALIGNMENT, &alignment); glPixelStorei(GL_UNPACK_ALIGNMENT, 1); |