diff options
| -rw-r--r-- | indra/llrender/llatmosphere.cpp | 8 | ||||
| -rw-r--r-- | indra/llrender/llcubemap.cpp | 12 | ||||
| -rw-r--r-- | indra/llrender/llgl.cpp | 6 | ||||
| -rw-r--r-- | indra/llrender/llrender.cpp | 18 | ||||
| -rw-r--r-- | indra/llrender/llshadermgr.cpp | 8 | ||||
| -rw-r--r-- | indra/llrender/llvertexbuffer.cpp | 76 | ||||
| -rw-r--r-- | indra/llrender/llvertexbuffer.h | 2 | 
7 files changed, 65 insertions, 65 deletions
| diff --git a/indra/llrender/llatmosphere.cpp b/indra/llrender/llatmosphere.cpp index ffc17c89f8..8e37ca9b90 100644 --- a/indra/llrender/llatmosphere.cpp +++ b/indra/llrender/llatmosphere.cpp @@ -241,7 +241,7 @@ LLGLTexture* LLAtmosphere::getTransmittance()          m_transmittance->generateGLTexture();          m_transmittance->setAddressMode(LLTexUnit::eTextureAddressMode::TAM_CLAMP);          m_transmittance->setFilteringOption(LLTexUnit::eTextureFilterOptions::TFO_BILINEAR); -        m_transmittance->setExplicitFormat(GL_RGB32F_ARB, GL_RGB, GL_FLOAT); +        m_transmittance->setExplicitFormat(GL_RGB32F, GL_RGB, GL_FLOAT);          m_transmittance->setTarget(GL_TEXTURE_2D, LLTexUnit::TT_TEXTURE);      }      return m_transmittance; @@ -255,7 +255,7 @@ LLGLTexture* LLAtmosphere::getScattering()          m_scattering->generateGLTexture();          m_scattering->setAddressMode(LLTexUnit::eTextureAddressMode::TAM_CLAMP);          m_scattering->setFilteringOption(LLTexUnit::eTextureFilterOptions::TFO_BILINEAR); -        m_scattering->setExplicitFormat(GL_RGB16F_ARB, GL_RGB, GL_FLOAT); +        m_scattering->setExplicitFormat(GL_RGB16F, GL_RGB, GL_FLOAT);          m_scattering->setTarget(GL_TEXTURE_3D, LLTexUnit::TT_TEXTURE_3D);      }      return m_scattering; @@ -269,7 +269,7 @@ LLGLTexture* LLAtmosphere::getMieScattering()          m_mie_scatter_texture->generateGLTexture();          m_mie_scatter_texture->setAddressMode(LLTexUnit::eTextureAddressMode::TAM_CLAMP);          m_mie_scatter_texture->setFilteringOption(LLTexUnit::eTextureFilterOptions::TFO_BILINEAR); -        m_mie_scatter_texture->setExplicitFormat(GL_RGB16F_ARB, GL_RGB, GL_FLOAT); +        m_mie_scatter_texture->setExplicitFormat(GL_RGB16F, GL_RGB, GL_FLOAT);          m_mie_scatter_texture->setTarget(GL_TEXTURE_3D, LLTexUnit::TT_TEXTURE_3D);      }      return m_mie_scatter_texture; @@ -283,7 +283,7 @@ LLGLTexture* LLAtmosphere::getIlluminance()          m_illuminance->generateGLTexture();          m_illuminance->setAddressMode(LLTexUnit::eTextureAddressMode::TAM_CLAMP);          m_illuminance->setFilteringOption(LLTexUnit::eTextureFilterOptions::TFO_BILINEAR); -        m_illuminance->setExplicitFormat(GL_RGB32F_ARB, GL_RGB, GL_FLOAT); +        m_illuminance->setExplicitFormat(GL_RGB32F, GL_RGB, GL_FLOAT);          m_illuminance->setTarget(GL_TEXTURE_2D, LLTexUnit::TT_TEXTURE);      }      return m_illuminance; diff --git a/indra/llrender/llcubemap.cpp b/indra/llrender/llcubemap.cpp index 834084674e..ad2a4203ba 100644 --- a/indra/llrender/llcubemap.cpp +++ b/indra/llrender/llcubemap.cpp @@ -50,12 +50,12 @@ LLCubeMap::LLCubeMap(bool init_as_srgb)  	  mMatrixStage(0),  	  mIssRGB(init_as_srgb)  { -	mTargets[0] = GL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB; -	mTargets[1] = GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB; -	mTargets[2] = GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB; -	mTargets[3] = GL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB; -	mTargets[4] = GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB; -	mTargets[5] = GL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB; +	mTargets[0] = GL_TEXTURE_CUBE_MAP_NEGATIVE_X; +	mTargets[1] = GL_TEXTURE_CUBE_MAP_POSITIVE_X; +	mTargets[2] = GL_TEXTURE_CUBE_MAP_NEGATIVE_Y; +	mTargets[3] = GL_TEXTURE_CUBE_MAP_POSITIVE_Y; +	mTargets[4] = GL_TEXTURE_CUBE_MAP_NEGATIVE_Z; +	mTargets[5] = GL_TEXTURE_CUBE_MAP_POSITIVE_Z;  }  LLCubeMap::~LLCubeMap() diff --git a/indra/llrender/llgl.cpp b/indra/llrender/llgl.cpp index 729e8a5f28..6ae5b0e94b 100644 --- a/indra/llrender/llgl.cpp +++ b/indra/llrender/llgl.cpp @@ -720,7 +720,7 @@ bool LLGLManager::initGL()  	stop_glerror();  	GLint num_tex_image_units; -	glGetIntegerv(GL_MAX_TEXTURE_IMAGE_UNITS_ARB, &num_tex_image_units); +	glGetIntegerv(GL_MAX_TEXTURE_IMAGE_UNITS, &num_tex_image_units);  	mNumTextureImageUnits = llmin(num_tex_image_units, 32);      if (mHasMultitexture) @@ -1593,8 +1593,8 @@ void LLGLState::initClass()  	// sStateMap[GL_TEXTURE_2D] = GL_TRUE;  	//make sure multisample defaults to disabled -	sStateMap[GL_MULTISAMPLE_ARB] = GL_FALSE; -	glDisable(GL_MULTISAMPLE_ARB); +	sStateMap[GL_MULTISAMPLE_EXT] = GL_FALSE; +	glDisable(GL_MULTISAMPLE_EXT);  }  //static diff --git a/indra/llrender/llrender.cpp b/indra/llrender/llrender.cpp index 84ef895ee4..7c6b091ac5 100644 --- a/indra/llrender/llrender.cpp +++ b/indra/llrender/llrender.cpp @@ -72,7 +72,7 @@ static const GLenum sGLTextureType[] =  #if GL_VERSION_3_1  	GL_TEXTURE_RECTANGLE_ARB,  #endif -	GL_TEXTURE_CUBE_MAP_ARB, +	GL_TEXTURE_CUBE_MAP,  #if GL_VERSION_3_2  	GL_TEXTURE_2D_MULTISAMPLE,  #endif @@ -126,7 +126,7 @@ void LLTexUnit::refreshState(void)  	gGL.flush(); -	glActiveTexture(GL_TEXTURE0_ARB + mIndex); +	glActiveTexture(GL_TEXTURE0 + mIndex);  	if (mCurrTexType != TT_NONE)  	{ @@ -147,7 +147,7 @@ void LLTexUnit::activate(void)  	if ((S32)gGL.mCurrTextureUnitIndex != mIndex || gGL.mDirty)  	{  		gGL.flush(); -		glActiveTexture(GL_TEXTURE0_ARB + mIndex); +		glActiveTexture(GL_TEXTURE0 + mIndex);  		gGL.mCurrTextureUnitIndex = mIndex;  	}  } @@ -191,7 +191,7 @@ void LLTexUnit::bindFast(LLTexture* texture)  {      LLImageGL* gl_tex = texture->getGLTexture(); -    glActiveTexture(GL_TEXTURE0_ARB + mIndex); +    glActiveTexture(GL_TEXTURE0 + mIndex);      gGL.mCurrTextureUnitIndex = mIndex;      mCurrTexture = gl_tex->getTexName();      if (!mCurrTexture) @@ -343,7 +343,7 @@ bool LLTexUnit::bind(LLCubeMap* cubeMap)  			activate();  			enable(LLTexUnit::TT_CUBE_MAP);              mCurrTexture = cubeMap->mImages[0]->getTexName(); -			glBindTexture(GL_TEXTURE_CUBE_MAP_ARB, mCurrTexture); +			glBindTexture(GL_TEXTURE_CUBE_MAP, mCurrTexture);  			mHasMipMaps = cubeMap->mImages[0]->mHasMipMaps;  			cubeMap->mImages[0]->updateBindStats(cubeMap->mImages[0]->mTextureMemory);  			if (cubeMap->mImages[0]->mTexOptionsDirty) @@ -473,7 +473,7 @@ void LLTexUnit::setTextureAddressMode(eTextureAddressMode mode)  	glTexParameteri (sGLTextureType[mCurrTexType], GL_TEXTURE_WRAP_T, sGLAddressMode[mode]);  	if (mCurrTexType == TT_CUBE_MAP)  	{ -		glTexParameteri (GL_TEXTURE_CUBE_MAP_ARB, GL_TEXTURE_WRAP_R, sGLAddressMode[mode]); +		glTexParameteri (GL_TEXTURE_CUBE_MAP, GL_TEXTURE_WRAP_R, sGLAddressMode[mode]);  	}  } @@ -650,10 +650,10 @@ void LLTexUnit::debugTextureUnit(void)  	if (mIndex < 0) return;  	GLint activeTexture; -	glGetIntegerv(GL_ACTIVE_TEXTURE_ARB, &activeTexture); -	if ((GL_TEXTURE0_ARB + mIndex) != activeTexture) +	glGetIntegerv(GL_ACTIVE_TEXTURE, &activeTexture); +	if ((GL_TEXTURE0 + mIndex) != activeTexture)  	{ -		U32 set_unit = (activeTexture - GL_TEXTURE0_ARB); +		U32 set_unit = (activeTexture - GL_TEXTURE0);  		LL_WARNS() << "Incorrect Texture Unit!  Expected: " << set_unit << " Actual: " << mIndex << LL_ENDL;  	}  } diff --git a/indra/llrender/llshadermgr.cpp b/indra/llrender/llshadermgr.cpp index ff547d9d47..bb3ded0229 100644 --- a/indra/llrender/llshadermgr.cpp +++ b/indra/llrender/llshadermgr.cpp @@ -748,7 +748,7 @@ GLuint LLShaderMgr::loadShaderFile(const std::string& filename, S32 & shader_lev  		extra_code_text[extra_code_count++] = strdup("#define ATTRIBUTE in\n"); -		if (type == GL_VERTEX_SHADER_ARB) +		if (type == GL_VERTEX_SHADER)  		{ //"varying" state is "out" in a vertex program, "in" in a fragment program   			// ("varying" is deprecated after version 1.20)  			extra_code_text[extra_code_count++] = strdup("#define VARYING out\n"); @@ -787,7 +787,7 @@ GLuint LLShaderMgr::loadShaderFile(const std::string& filename, S32 & shader_lev  		extra_code_text[extra_code_count++] = strdup( "#define IS_AMD_CARD 1\n" );  	} -	if (texture_index_channels > 0 && type == GL_FRAGMENT_SHADER_ARB) +	if (texture_index_channels > 0 && type == GL_FRAGMENT_SHADER)  	{  		//use specified number of texture channels for indexed texture rendering @@ -1022,10 +1022,10 @@ GLuint LLShaderMgr::loadShaderFile(const std::string& filename, S32 & shader_lev  	if (ret)  	{  		// Add shader file to map -        if (type == GL_VERTEX_SHADER_ARB) { +        if (type == GL_VERTEX_SHADER) {              mVertexShaderObjects[filename] = ret;          } -        else if (type == GL_FRAGMENT_SHADER_ARB) { +        else if (type == GL_FRAGMENT_SHADER) {              mFragmentShaderObjects[filename] = ret;          }  		shader_level = try_gpu_class; diff --git a/indra/llrender/llvertexbuffer.cpp b/indra/llrender/llvertexbuffer.cpp index 44107d2957..1893764cab 100644 --- a/indra/llrender/llvertexbuffer.cpp +++ b/indra/llrender/llvertexbuffer.cpp @@ -83,11 +83,11 @@ const U32 LL_VBO_POOL_SEED_COUNT = vbo_block_index(LL_VBO_POOL_MAX_SEED_SIZE);  //============================================================================  //static -LLVBOPool LLVertexBuffer::sStreamVBOPool(GL_STREAM_DRAW_ARB, GL_ARRAY_BUFFER_ARB); -LLVBOPool LLVertexBuffer::sDynamicVBOPool(GL_DYNAMIC_DRAW_ARB, GL_ARRAY_BUFFER_ARB); -LLVBOPool LLVertexBuffer::sDynamicCopyVBOPool(GL_DYNAMIC_COPY_ARB, GL_ARRAY_BUFFER_ARB); -LLVBOPool LLVertexBuffer::sStreamIBOPool(GL_STREAM_DRAW_ARB, GL_ELEMENT_ARRAY_BUFFER_ARB); -LLVBOPool LLVertexBuffer::sDynamicIBOPool(GL_DYNAMIC_DRAW_ARB, GL_ELEMENT_ARRAY_BUFFER_ARB); +LLVBOPool LLVertexBuffer::sStreamVBOPool(GL_STREAM_DRAW, GL_ARRAY_BUFFER); +LLVBOPool LLVertexBuffer::sDynamicVBOPool(GL_DYNAMIC_DRAW, GL_ARRAY_BUFFER); +LLVBOPool LLVertexBuffer::sDynamicCopyVBOPool(GL_DYNAMIC_COPY, GL_ARRAY_BUFFER); +LLVBOPool LLVertexBuffer::sStreamIBOPool(GL_STREAM_DRAW, GL_ELEMENT_ARRAY_BUFFER); +LLVBOPool LLVertexBuffer::sDynamicIBOPool(GL_DYNAMIC_DRAW, GL_ELEMENT_ARRAY_BUFFER);  U32 LLVBOPool::sBytesPooled = 0;  U32 LLVBOPool::sIndexBytesPooled = 0; @@ -183,7 +183,7 @@ U8* LLVBOPool::allocate(U32& name, U32 size, bool for_seed)  			mMissCount[i]++;	  		} -		if (mType == GL_ARRAY_BUFFER_ARB) +		if (mType == GL_ARRAY_BUFFER)  		{  			LLVertexBuffer::sAllocatedBytes += size;  		} @@ -192,10 +192,10 @@ U8* LLVBOPool::allocate(U32& name, U32 size, bool for_seed)  			LLVertexBuffer::sAllocatedIndexBytes += size;  		} -		if (LLVertexBuffer::sDisableVBOMapping || mUsage != GL_DYNAMIC_DRAW_ARB) +		if (LLVertexBuffer::sDisableVBOMapping || mUsage != GL_DYNAMIC_DRAW)  		{  			glBufferData(mType, size, 0, mUsage); -			if (mUsage != GL_DYNAMIC_COPY_ARB) +			if (mUsage != GL_DYNAMIC_COPY)  			{ //data will be provided by application  				ret = (U8*) ll_aligned_malloc<64>(size);  				if (!ret) @@ -225,7 +225,7 @@ U8* LLVBOPool::allocate(U32& name, U32 size, bool for_seed)  			rec.mGLName = name;  			rec.mClientData = ret; -			if (mType == GL_ARRAY_BUFFER_ARB) +			if (mType == GL_ARRAY_BUFFER)  			{  				sBytesPooled += size;  			} @@ -241,7 +241,7 @@ U8* LLVBOPool::allocate(U32& name, U32 size, bool for_seed)  		name = mFreeList[i].front().mGLName;  		ret = mFreeList[i].front().mClientData; -		if (mType == GL_ARRAY_BUFFER_ARB) +		if (mType == GL_ARRAY_BUFFER)  		{  			sBytesPooled -= size;  		} @@ -263,7 +263,7 @@ void LLVBOPool::release(U32 name, U8* buffer, U32 size)  	deleteBuffer(name);  	ll_aligned_free_fallback((U8*) buffer); -	if (mType == GL_ARRAY_BUFFER_ARB) +	if (mType == GL_ARRAY_BUFFER)  	{  		LLVertexBuffer::sAllocatedBytes -= size;  	} @@ -322,7 +322,7 @@ void LLVBOPool::cleanup()  			l.pop_front(); -			if (mType == GL_ARRAY_BUFFER_ARB) +			if (mType == GL_ARRAY_BUFFER)  			{  				sBytesPooled -= size;  				LLVertexBuffer::sAllocatedBytes -= size; @@ -606,7 +606,7 @@ void LLVertexBuffer::drawRange(U32 mode, U32 start, U32 end, U32 count, U32 indi  	if (gDebugGL && !mGLArray && useVBOs())  	{  		GLint elem = 0; -		glGetIntegerv(GL_ELEMENT_ARRAY_BUFFER_BINDING_ARB, &elem); +		glGetIntegerv(GL_ELEMENT_ARRAY_BUFFER_BINDING, &elem);  		if (elem != mGLIndices)  		{ @@ -805,32 +805,32 @@ S32 LLVertexBuffer::determineUsage(S32 usage)  		ret_usage = 0;  	} -	if (ret_usage == GL_STREAM_DRAW_ARB && !sUseStreamDraw) +	if (ret_usage == GL_STREAM_DRAW && !sUseStreamDraw)  	{  		ret_usage = 0;  	} -	if (ret_usage == GL_DYNAMIC_DRAW_ARB && sPreferStreamDraw) +	if (ret_usage == GL_DYNAMIC_DRAW && sPreferStreamDraw)  	{ -		ret_usage = GL_STREAM_DRAW_ARB; +		ret_usage = GL_STREAM_DRAW;  	}  	if (ret_usage == 0 && LLRender::sGLCoreProfile)  	{ //MUST use VBOs for all rendering -		ret_usage = GL_STREAM_DRAW_ARB; +		ret_usage = GL_STREAM_DRAW;  	} -	if (ret_usage && ret_usage != GL_STREAM_DRAW_ARB) +	if (ret_usage && ret_usage != GL_STREAM_DRAW)  	{ //only stream_draw and dynamic_draw are supported when using VBOs, dynamic draw is the default -		if (ret_usage != GL_DYNAMIC_COPY_ARB) +		if (ret_usage != GL_DYNAMIC_COPY)  		{  		    if (sDisableVBOMapping)  		    { //always use stream draw if VBO mapping is disabled -			    ret_usage = GL_STREAM_DRAW_ARB; +			    ret_usage = GL_STREAM_DRAW;  		    }  		    else  		    { -			    ret_usage = GL_DYNAMIC_DRAW_ARB; +			    ret_usage = GL_DYNAMIC_DRAW;  		    }  	    }  	} @@ -863,7 +863,7 @@ LLVertexBuffer::LLVertexBuffer(U32 typemask, S32 usage)  	mMappable(false),  	mFence(NULL)  { -	mMappable = (mUsage == GL_DYNAMIC_DRAW_ARB && !sDisableVBOMapping); +	mMappable = (mUsage == GL_DYNAMIC_DRAW && !sDisableVBOMapping);  	//zero out offsets  	for (U32 i = 0; i < TYPE_MAX; i++) @@ -986,11 +986,11 @@ void LLVertexBuffer::genBuffer(U32 size)  {  	mSize = vbo_block_size(size); -	if (mUsage == GL_STREAM_DRAW_ARB) +	if (mUsage == GL_STREAM_DRAW)  	{  		mMappedData = sStreamVBOPool.allocate(mGLBuffer, mSize);  	} -	else if (mUsage == GL_DYNAMIC_DRAW_ARB) +	else if (mUsage == GL_DYNAMIC_DRAW)  	{  		mMappedData = sDynamicVBOPool.allocate(mGLBuffer, mSize);  	} @@ -1007,7 +1007,7 @@ void LLVertexBuffer::genIndices(U32 size)  {  	mIndicesSize = vbo_block_size(size); -	if (mUsage == GL_STREAM_DRAW_ARB) +	if (mUsage == GL_STREAM_DRAW)  	{  		mMappedIndexData = sStreamIBOPool.allocate(mGLIndices, mIndicesSize);  	} @@ -1021,7 +1021,7 @@ void LLVertexBuffer::genIndices(U32 size)  void LLVertexBuffer::releaseBuffer()  { -	if (mUsage == GL_STREAM_DRAW_ARB) +	if (mUsage == GL_STREAM_DRAW)  	{  		sStreamVBOPool.release(mGLBuffer, mMappedData, mSize);  	} @@ -1038,7 +1038,7 @@ void LLVertexBuffer::releaseBuffer()  void LLVertexBuffer::releaseIndices()  { -	if (mUsage == GL_STREAM_DRAW_ARB) +	if (mUsage == GL_STREAM_DRAW)  	{  		sStreamIBOPool.release(mGLIndices, mMappedIndexData, mIndicesSize);  	} @@ -1503,7 +1503,7 @@ U8* LLVertexBuffer::mapVertexBuffer(S32 type, S32 index, S32 count, bool map_ran  #ifdef GL_ARB_map_buffer_range  						S32 offset = mOffsets[type] + sTypeSize[type]*index;  						S32 length = (sTypeSize[type]*count+0xF) & ~0xF; -						src = (U8*) glMapBufferRange(GL_ARRAY_BUFFER_ARB, offset, length,  +						src = (U8*) glMapBufferRange(GL_ARRAY_BUFFER, offset, length,  							GL_MAP_WRITE_BIT |   							GL_MAP_FLUSH_EXPLICIT_BIT |   							GL_MAP_INVALIDATE_RANGE_BIT); @@ -1524,7 +1524,7 @@ U8* LLVertexBuffer::mapVertexBuffer(S32 type, S32 index, S32 count, bool map_ran  							}  						} -						src = (U8*) glMapBufferRange(GL_ARRAY_BUFFER_ARB, 0, mSize,  +						src = (U8*) glMapBufferRange(GL_ARRAY_BUFFER, 0, mSize,  							GL_MAP_WRITE_BIT |   							GL_MAP_FLUSH_EXPLICIT_BIT);  #endif @@ -1577,7 +1577,7 @@ U8* LLVertexBuffer::mapVertexBuffer(S32 type, S32 index, S32 count, bool map_ran  					//--------------------  					GLint buff; -					glGetIntegerv(GL_ARRAY_BUFFER_BINDING_ARB, &buff); +					glGetIntegerv(GL_ARRAY_BUFFER_BINDING, &buff);  					if ((GLuint)buff != mGLBuffer)  					{  						LL_ERRS() << "Invalid GL vertex buffer bound: " << buff << LL_ENDL; @@ -1665,7 +1665,7 @@ U8* LLVertexBuffer::mapIndexBuffer(S32 index, S32 count, bool map_range)  			if (gDebugGL && useVBOs())  			{  				GLint elem = 0; -				glGetIntegerv(GL_ELEMENT_ARRAY_BUFFER_BINDING_ARB, &elem); +				glGetIntegerv(GL_ELEMENT_ARRAY_BUFFER_BINDING, &elem);  				if (elem != mGLIndices)  				{ @@ -1688,7 +1688,7 @@ U8* LLVertexBuffer::mapIndexBuffer(S32 index, S32 count, bool map_range)  #ifdef GL_ARB_map_buffer_range  						S32 offset = sizeof(U16)*index;  						S32 length = sizeof(U16)*count; -						src = (U8*) glMapBufferRange(GL_ELEMENT_ARRAY_BUFFER_ARB, offset, length,  +						src = (U8*) glMapBufferRange(GL_ELEMENT_ARRAY_BUFFER, offset, length,  							GL_MAP_WRITE_BIT |   							GL_MAP_FLUSH_EXPLICIT_BIT |   							GL_MAP_INVALIDATE_RANGE_BIT); @@ -1697,7 +1697,7 @@ U8* LLVertexBuffer::mapIndexBuffer(S32 index, S32 count, bool map_range)  					else  					{  #ifdef GL_ARB_map_buffer_range -						src = (U8*) glMapBufferRange(GL_ELEMENT_ARRAY_BUFFER_ARB, 0, sizeof(U16)*mNumIndices,  +						src = (U8*) glMapBufferRange(GL_ELEMENT_ARRAY_BUFFER, 0, sizeof(U16)*mNumIndices,  							GL_MAP_WRITE_BIT |   							GL_MAP_FLUSH_EXPLICIT_BIT);  #endif @@ -1741,7 +1741,7 @@ U8* LLVertexBuffer::mapIndexBuffer(S32 index, S32 count, bool map_range)  			if(mMappable)  			{  				GLint buff; -				glGetIntegerv(GL_ELEMENT_ARRAY_BUFFER_BINDING_ARB, &buff); +				glGetIntegerv(GL_ELEMENT_ARRAY_BUFFER_BINDING, &buff);  				if ((GLuint)buff != mGLIndices)  				{  					LL_ERRS() << "Invalid GL index buffer bound: " << buff << LL_ENDL; @@ -1837,7 +1837,7 @@ void LLVertexBuffer::unmapBuffer()  						if (gGLManager.mHasMapBufferRange)  						{  #ifdef GL_ARB_map_buffer_range -							glFlushMappedBufferRange(GL_ARRAY_BUFFER_ARB, offset, length); +							glFlushMappedBufferRange(GL_ARRAY_BUFFER, offset, length);  #endif  						}  						else if (gGLManager.mHasFlushBufferRange) @@ -1917,7 +1917,7 @@ void LLVertexBuffer::unmapBuffer()  						if (gGLManager.mHasMapBufferRange)  						{  #ifdef GL_ARB_map_buffer_range -							glFlushMappedBufferRange(GL_ELEMENT_ARRAY_BUFFER_ARB, offset, length); +							glFlushMappedBufferRange(GL_ELEMENT_ARRAY_BUFFER, offset, length);  #endif  						}  						else if (gGLManager.mHasFlushBufferRange) @@ -2258,7 +2258,7 @@ void LLVertexBuffer::setBuffer(U32 data_mask)  		if (gDebugGL && !mGLArray)  		{  			GLint buff; -			glGetIntegerv(GL_ARRAY_BUFFER_BINDING_ARB, &buff); +			glGetIntegerv(GL_ARRAY_BUFFER_BINDING, &buff);  			if ((GLuint)buff != mGLBuffer)  			{  				if (gDebugSession) @@ -2273,7 +2273,7 @@ void LLVertexBuffer::setBuffer(U32 data_mask)  			if (mGLIndices)  			{ -				glGetIntegerv(GL_ELEMENT_ARRAY_BUFFER_BINDING_ARB, &buff); +				glGetIntegerv(GL_ELEMENT_ARRAY_BUFFER_BINDING, &buff);  				if ((GLuint)buff != mGLIndices)  				{  					if (gDebugSession) diff --git a/indra/llrender/llvertexbuffer.h b/indra/llrender/llvertexbuffer.h index 3b3fe44984..1dbf271436 100644 --- a/indra/llrender/llvertexbuffer.h +++ b/indra/llrender/llvertexbuffer.h @@ -287,7 +287,7 @@ public:  	U8* getMappedIndices() const			{ return mMappedIndexData; }  	S32 getOffset(S32 type) const			{ return mOffsets[type]; }  	S32 getUsage() const					{ return mUsage; } -	bool isWriteable() const				{ return (mMappable || mUsage == GL_STREAM_DRAW_ARB) ? true : false; } +	bool isWriteable() const				{ return (mMappable || mUsage == GL_STREAM_DRAW) ? true : false; }  	void draw(U32 mode, U32 count, U32 indices_offset) const;  	void drawArrays(U32 mode, U32 offset, U32 count) const; | 
