karlwessel / mplopengl

OpenGL based backend for matplotlib
MIT License
14 stars 5 forks source link

Keep in mind the factory for caching in GPUObjectCache #13

Open karlwessel opened 5 years ago

karlwessel commented 5 years ago

Currently the factory method is ignored when check whether a value is already cached with GPUObjectCache. If there are two factory methods that have the same hash value for their arguments (e.g. by taking the same arguments) the cache will return the same cached object for both.

This could be fixed in the same way like the context is recorded by GPUObjectCache.