|
@@ -140,18 +140,18 @@ void GFXGLDevice::initGLState()
|
|
|
|
|
|
glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
|
|
glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
|
|
|
|
|
|
- // [JTH 5/6/2016] GLSL 1.50 is really SM 4.0
|
|
|
|
|
|
+ // [JTH 5/6/2016] GLSL 1.50 is really SM 4.0
|
|
// Setting mPixelShaderVersion to 3.0 will allow Advanced Lighting to run.
|
|
// Setting mPixelShaderVersion to 3.0 will allow Advanced Lighting to run.
|
|
mPixelShaderVersion = 3.0;
|
|
mPixelShaderVersion = 3.0;
|
|
|
|
|
|
// Set capability extensions.
|
|
// Set capability extensions.
|
|
mCapabilities.anisotropicFiltering = mCardProfiler->queryProfile("GL_EXT_texture_filter_anisotropic");
|
|
mCapabilities.anisotropicFiltering = mCardProfiler->queryProfile("GL_EXT_texture_filter_anisotropic");
|
|
- mCapabilities.bufferStorage = mCardProfiler->queryProfile("GL_ARB_buffer_storage");
|
|
|
|
- mCapabilities.shaderModel5 = mCardProfiler->queryProfile("GL_ARB_gpu_shader5");
|
|
|
|
- mCapabilities.textureStorage = mCardProfiler->queryProfile("GL_ARB_texture_storage");
|
|
|
|
- mCapabilities.samplerObjects = mCardProfiler->queryProfile("GL_ARB_sampler_objects");
|
|
|
|
- mCapabilities.copyImage = mCardProfiler->queryProfile("GL_ARB_copy_image");
|
|
|
|
- mCapabilities.vertexAttributeBinding = mCardProfiler->queryProfile("GL_ARB_vertex_attrib_binding");
|
|
|
|
|
|
+ mCapabilities.bufferStorage = mCardProfiler->queryProfile("GL_ARB_buffer_storage");
|
|
|
|
+ mCapabilities.shaderModel5 = mCardProfiler->queryProfile("GL_ARB_gpu_shader5");
|
|
|
|
+ mCapabilities.textureStorage = mCardProfiler->queryProfile("GL_ARB_texture_storage");
|
|
|
|
+ mCapabilities.samplerObjects = mCardProfiler->queryProfile("GL_ARB_sampler_objects");
|
|
|
|
+ mCapabilities.copyImage = mCardProfiler->queryProfile("GL_ARB_copy_image");
|
|
|
|
+ mCapabilities.vertexAttributeBinding = mCardProfiler->queryProfile("GL_ARB_vertex_attrib_binding");
|
|
|
|
|
|
String vendorStr = (const char*)glGetString( GL_VENDOR );
|
|
String vendorStr = (const char*)glGetString( GL_VENDOR );
|
|
if( vendorStr.find("NVIDIA", 0, String::NoCase | String::Left) != String::NPos)
|
|
if( vendorStr.find("NVIDIA", 0, String::NoCase | String::Left) != String::NPos)
|
|
@@ -224,8 +224,8 @@ GFXGLDevice::GFXGLDevice(U32 adapterIndex) :
|
|
mCurrentVB_Divisor[i] = 0;
|
|
mCurrentVB_Divisor[i] = 0;
|
|
}
|
|
}
|
|
|
|
|
|
- // Initiailize capabilities to false.
|
|
|
|
- memset(&mCapabilities, 0, sizeof(GLCapabilities));
|
|
|
|
|
|
+ // Initiailize capabilities to false.
|
|
|
|
+ memset(&mCapabilities, 0, sizeof(GLCapabilities));
|
|
|
|
|
|
loadGLCore();
|
|
loadGLCore();
|
|
|
|
|