@@ -195,18 +195,12 @@ StateManagerGL::StateManagerGL(const FunctionsGL *functions,
195195 mTemporaryPausedQueries .fill (nullptr );
196196
197197 // Initialize point sprite state for desktop GL
198- if (mFunctions ->standard == STANDARD_GL_DESKTOP )
199- {
200- mFunctions ->enable (GL_PROGRAM_POINT_SIZE );
198+ mFunctions ->enable (GL_PROGRAM_POINT_SIZE );
201199
202- // GL_POINT_SPRITE was deprecated in the core profile. Point rasterization is always
203- // performed
204- // as though POINT_SPRITE were enabled.
205- if ((mFunctions ->profile & GL_CONTEXT_CORE_PROFILE_BIT ) == 0 )
206- {
207- mFunctions ->enable (GL_POINT_SPRITE );
208- }
209- }
200+ // GL_POINT_SPRITE was deprecated in the core profile. Point rasterization is always
201+ // performed
202+ // as though POINT_SPRITE were enabled.
203+ mFunctions ->enable (GL_POINT_SPRITE );
210204
211205 if (features.emulatePrimitiveRestartFixedIndex .enabled )
212206 {
@@ -1820,7 +1814,7 @@ void StateManagerGL::setPolygonMode(gl::PolygonMode mode)
18201814 }
18211815 else
18221816 {
1823- ASSERT (mFunctions ->polygonModeNV );
1817+ // ASSERT(mFunctions->polygonModeNV);
18241818 mFunctions ->polygonModeNV (GL_FRONT_AND_BACK , ToGLenum (mPolygonMode ));
18251819 }
18261820
@@ -2794,10 +2788,10 @@ void StateManagerGL::setLogicOp(gl::LogicalOperation opcode)
27942788
27952789void StateManagerGL::setTextureCubemapSeamlessEnabled (bool enabled)
27962790{
2797- if (mFunctions ->standard != STANDARD_GL_DESKTOP )
2791+ /* if (mFunctions->standard != STANDARD_GL_DESKTOP)
27982792 {
27992793 return;
2800- }
2794+ }*/
28012795
28022796 if (mTextureCubemapSeamlessEnabled != enabled)
28032797 {
0 commit comments