Michael X. Grey
af1be65012
Automatically generate pkgconfig files instead of using manually maintained templates
2018-11-15 14:26:41 +08:00
flashk
7bcf9b4bcb
Fix hardware mipmap generation for cube maps
...
I was getting a black image when enabling hardware mipmap generation on cubemaps. I believe the problem is that the base Texture class is hard coding GL_TEXTURE_2D when enabling mipmap generation, instead of using the target type from the derived class.
2018-10-02 09:04:26 -07:00
Robert Osfield
594e971f6d
Removed unused static variables
2018-10-02 12:30:28 +01:00
Robert Osfield
5962d2580f
From Andy Skinner, Added ~GLExtensions to clear cached values for context ID
2018-10-02 12:29:30 +01:00
Robert Osfield
1985927333
Standardized the glTexStorage*() calls to use osg::maximum(_numMipmapLevels,1) of rnumber of mipmaps to keep the usage consistent.
...
Fixed the erronous Texture2DArray glTexStorage call so that it used the _numMipmapLevels as above to resolve bug in allocation.
2018-09-12 19:11:31 +01:00
gwaldron
fac2cc46dc
Fixed compilation issues for implicit ref_ptr conversion OFF
2018-09-10 13:19:42 -04:00
Robert Osfield
d1c24d54ed
Fixed copy constructor
2018-09-05 18:08:04 +01:00
Robert Osfield
f9cba78ff2
Merged check against data type changes from 3.6 branch.
2018-09-05 14:12:04 +01:00
OpenSceneGraph git repository
eaffb392f3
Merge pull request #614 from jasonbeverage/sharedshaderfix
...
Protect the _programSet in Shader with a mutex.
2018-09-05 09:33:01 +01:00
Jason Beverage
89a5d8b513
Protect the _programSet in Shader with a mutex.
...
This prevents thread safety issues when Shader objects are used in
multiple programs.
2018-09-04 10:35:38 -04:00
Robert Osfield
91df3d8311
Changed the ShapeDrawable::build() methpd so that it does run when the ShadpwDrawabe is a KdTree.
2018-09-04 15:27:41 +01:00
Robert Osfield
598b16b9bf
Merge branch 'master' of https://github.com/openscenegraph/OpenSceneGraph
2018-09-03 10:15:29 +01:00
Robert Osfield
dcd28ba39d
Added reset of _stateset to prevent the releaseGLObjects calling release on th StateSet from the destructor
2018-09-03 09:56:37 +01:00
Thomas Hogarth
9b4b25e4f5
Merge branch 'master' of git://github.com/openscenegraph/OpenSceneGraph into topic-gles3-android
...
merging master
2018-08-28 15:42:25 +01:00
Robert Osfield
ec4b618b7a
Replaced the glSGetProcAddressARB code with the dlsym() usage as the NVidia driver looks to be returning non NULL pointers for invalid function names.
2018-08-28 11:22:57 +01:00
Robert Osfield
e8b56c5c97
Added settting of the PointSprite mode validity to State::initializeExtensionProcs()
2018-08-22 10:02:29 +01:00
plevy
7bd395a77d
Change GL_RGBA16F to GL_RGBA16F_ARB to fix Windows Build
...
Change GL_RGBA16F to GL_RGBA16F_ARB to fix Windows build.
2018-08-21 09:38:03 -04:00
Robert Osfield
8af2ea48c2
Replaced GL_RGBA32F with GL_RGBA32F_ARB to fix Windows build
2018-08-21 09:21:11 +01:00
mp3butcher
a5a596b33b
add fixe for Cubemap and TexStorage
2018-08-19 20:17:30 +02:00
mp3butcher
7685235c1d
add TexStorage feature on Texture2DArray
2018-08-18 22:55:56 +02:00
mp3butcher
2c9d551452
renaming variable and remove redondant test and variable
2018-08-18 22:55:30 +02:00
mp3butcher
d9f58ff03b
fix possible internalformat misregisterings (diff effective gl and osg representation)
2018-08-18 17:26:32 +01:00
Robert Osfield
d37b826a74
Refactored the glTexStorage code paths to use selectSizedInternalFormat() and move the generateAndAssignTextureObject() calls within the two useTexStorage and non TexStorage paths to ensure that the right foramts are matched when generating the texture object
2018-08-17 18:59:04 +01:00
Robert Osfield
d841170d32
Removed check as this is better outside of the function
2018-08-17 16:51:55 +01:00
Robert Osfield
71f134c64b
Created a GLenum Texture::selectSizedInternalFormat(const osg::Image* image=0) const method to help clean up set up of glTexStorage.
...
Fixed typo.
2018-08-17 12:22:36 +01:00
OpenSceneGraph git repository
7328e03d23
Merge pull request #594 from mp3butcher/patch-6
...
Add valid sizedInternalFormats for glTexStorage path
2018-08-17 09:54:15 +01:00
Robert Osfield
eee5d5482e
Fixed memory leak associated with VertexArrayStte objects not getting released on destruction of Geometry/Drawables.
2018-08-16 19:23:17 +01:00
Julien Valentin
3a604b0e10
Add valid sizedInternalFormats
...
Why some much commented?
2018-08-16 18:56:25 +02:00
mp3butcher
c2031836ee
add immutability (if available) on ImageLess TextureRectangle
2018-08-11 14:10:13 +02:00
Robert Osfield
6d0b8c4693
Tightened up the setting of the Member property of Texture attributes
2018-08-08 07:34:14 +01:00
Thomas Hogarth
5058a9cd9c
Merge branch 'master' of git://github.com/openscenegraph/OpenSceneGraph into topic-gles3-android
...
merge with master
2018-07-23 23:52:30 +01:00
OpenSceneGraph git repository
86bd4a4e8b
Merge branch 'master' into imagebinding3
2018-07-23 07:57:23 +01:00
Julien Valentin
39642572d2
Avoid name collision with size_t
2018-07-18 16:19:21 +02:00
Thomas Hogarth
014255bd9e
Merge branch 'master' of git://github.com/openscenegraph/OpenSceneGraph into topic-gles3-android
...
merging with master
2018-06-29 03:08:24 +01:00
Robert Osfield
a774bd5902
Fixed relaseGLObjects() calls
2018-06-27 11:07:10 +01:00
Robert Osfield
dbcd3b0324
Added GLExtensions::isPointSpriteModeSupported to allow it to be enable for GL versions that support GL_POINT_SPRITE_ARB/GL_POINT_SPRITE_OES
2018-06-27 11:04:14 +01:00
Daniel Emminizer
a3ad6d3af9
GL_RG is now a support format in gluScaleImage().
2018-06-27 11:04:01 +01:00
Robert Osfield
6b38107f45
To handle calling Array::setBinding() after Geometry::set*Array() call, to the Geometry::addVertexBufferObjectIfRequired(osg::Array* array) added treatment of array->getBinding()==Array::BIND_UNDEFINED as BIND_PER_VERTEX as a safe fallback.
2018-06-14 14:54:09 +01:00
Philippe Renon
c0848a56bc
Notify: silence warning about unused argument
2018-05-27 14:21:57 +02:00
Robert Osfield
ed683678c0
Added check to make sure that glEnablei and glDisablei are only called when the capability is non zero to fix GL invalid value error.
2018-05-23 07:49:00 +01:00
Thomas Hogarth
b67a7c5981
compile fix for gles3 on android, copied example folder to create gles3 android example
2018-05-23 02:01:21 +01:00
Robert Osfield
0df03b09f9
Added GL_RED and GL_RG support to _readColor()/Image::getColor();
2018-05-18 14:25:30 +01:00
Robert Osfield
41f7efbab6
Imoroved backwards compatibility with 3.6
2018-05-14 10:47:50 +01:00
Robert Osfield
75b576bf83
Improved the handling of precision
2018-05-14 08:44:47 +01:00
Robert Osfield
bc600bc9f7
Fixed crash when using ShapeDrawable with a TriangleMesh or ConvexHull shape due to missing texture coords
2018-05-13 11:53:21 +01:00
Robert Osfield
ac6eaee583
Fixed build when OSG_ENVVAR_SUPPORTED is disabled and quietened down warnings using OSG_UNUSED* macros
2018-05-10 19:00:13 +01:00
Jason Beverage
d53a74b1bb
Quiet down shader compilation messages
2018-05-01 11:04:35 -04:00
Robert Osfield
e2e8e779e9
Renamed CMake variable + C++ #define to OSG_GL_CONTEXT_VERSION
2018-04-24 17:05:03 +01:00
Robert Osfield
ef3d672f8c
Added OSG_GL_CONTEXT_STRING cmake variable to set include/osg/GL headers that sets Traits::glContextVersion.
2018-04-24 16:30:48 +01:00
Alberto Luaces
bc4f181d41
Fix typos and spelling.
2018-04-20 18:18:22 +02:00