diff options
author | Lukas Steiblys <imbusy@imbusy.org> | 2009-10-03 19:35:01 +0400 |
---|---|---|
committer | Lukas Steiblys <imbusy@imbusy.org> | 2009-10-03 19:35:01 +0400 |
commit | e80d2cc4262cf921758667c24b2c31a90d22f6ac (patch) | |
tree | 3753509643ff6b74a7976abb38510c2795a88f86 /source/blender/editors/screen/glutil.c | |
parent | 8204dffe8a73271bc99eeeaeaed56ac0bed46e6a (diff) |
imbusy GSoC'09 branch merge (Vertex Buffer Object support)
Diffstat (limited to 'source/blender/editors/screen/glutil.c')
-rw-r--r-- | source/blender/editors/screen/glutil.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/blender/editors/screen/glutil.c b/source/blender/editors/screen/glutil.c index 5312ca26906..1445c6b5cf8 100644 --- a/source/blender/editors/screen/glutil.c +++ b/source/blender/editors/screen/glutil.c @@ -720,6 +720,18 @@ void bglBegin(int mode) } } +int bglPointHack() { + float value[4]; + int pointhack; + glGetFloatv(GL_POINT_SIZE_RANGE, value); + if(value[1]<2.0) { + glGetFloatv(GL_POINT_SIZE, value); + pointhack= floor(value[0]+0.5); + if(pointhack>4) pointhack= 4; + return pointhack; + } + return 0; +} void bglVertex3fv(float *vec) { |