projects
/
occt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d1db912
)
0026012: Visualization, TKOpenGl - fix misprints in detection of high precision float...
author
kgv
<kgv@opencascade.com>
Thu, 2 Apr 2015 16:06:57 +0000
(19:06 +0300)
committer
bugmaster
<bugmaster@opencascade.com>
Thu, 9 Apr 2015 11:14:45 +0000
(14:14 +0300)
src/OpenGl/OpenGl_Context.cxx
patch
|
blob
|
blame
|
history
diff --git
a/src/OpenGl/OpenGl_Context.cxx
b/src/OpenGl/OpenGl_Context.cxx
index
277e7f6
..
0cf7039
100644
(file)
--- a/
src/OpenGl/OpenGl_Context.cxx
+++ b/
src/OpenGl/OpenGl_Context.cxx
@@
-1051,11
+1051,11
@@
void OpenGl_Context::init (const Standard_Boolean theIsCoreProfile)
arbFBOBlit = (OpenGl_ArbFBOBlit* )(&(*myFuncs));
}
arbFBOBlit = (OpenGl_ArbFBOBlit* )(&(*myFuncs));
}
- hasHighp = CheckExtension ("OES_fragment_precision_high");
+ hasHighp = CheckExtension ("
GL_
OES_fragment_precision_high");
GLint aRange[2] = {0, 0};
GLint aRange[2] = {0, 0};
- GLint aPrec
[2] = {0, 0}
;
- ::glGetShaderPrecisionFormat (GL_FRAGMENT_SHADER, GL_HIGH_FLOAT, aRange, aPrec);
- if (aPrec
[1]
!= 0)
+ GLint aPrec
= 0
;
+ ::glGetShaderPrecisionFormat (GL_FRAGMENT_SHADER, GL_HIGH_FLOAT, aRange,
&
aPrec);
+ if (aPrec != 0)
{
hasHighp = Standard_True;
}
{
hasHighp = Standard_True;
}