# \[OpenGL\]\[BUG\] Shared Texture Samples do not work in OpenGL

**URL:** <https://forums.unrealengine.com/t/opengl-bug-shared-texture-samples-do-not-work-in-opengl/319647>\
**Category:** Asset Creation\
**Tags:** opengl, unreal-engine, question\
**Created:** [May 24, 2015, 7:06pm UTC](https://forums.unrealengine.com/t/opengl-bug-shared-texture-samples-do-not-work-in-opengl/319647 "2015-05-24T19:06:18Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![eWomerOC](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@eWomerOC](https://forums.unrealengine.com/u/eWomerOC)\
**Post date:** [May 24, 2015, 7:06pm UTC](https://forums.unrealengine.com/t/opengl-bug-shared-texture-samples-do-not-work-in-opengl/319647/1 "2015-05-24T19:06:18Z")

</div>

Utilizing 128 textures in a material does not work in Linux, and by extension Mac., its still limited to 16 ([actual 12](https://answers.unrealengine.com/questions/8283/12-texture-samplers-why-there-is-no-more-samplers.html)) on OpenGL platforms, I looked at the [commit](https://github.com/EpicGames/UnrealEngine/commit/887d53d1840ad1de5107f5ccf55577e5bafcd054) that implemented it and I don’t see anything limiting it for D3D, PS4, or XBone only.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6888603d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6888603d](https://forums.unrealengine.com/u/anonymous_user_6888603d)\
**Post date:** [May 30, 2015, 9:22pm UTC](https://forums.unrealengine.com/t/opengl-bug-shared-texture-samples-do-not-work-in-opengl/319647/2 "2015-05-30T21:22:21Z")

</div>

Apple’s Mac OpenGL is still limited to a maximum of 16 samplers & UE4 is bound by that restriction. This will not change until Apple update their OpenGL implementation.

---

<div class="post-metadata">

**Author:** ![eWomerOC](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@eWomerOC](https://forums.unrealengine.com/u/eWomerOC)\
**Post date:** [June 1, 2015, 12:37am UTC](https://forums.unrealengine.com/t/opengl-bug-shared-texture-samples-do-not-work-in-opengl/319647/3 "2015-06-01T00:37:57Z")

</div>

What about linux? Is linux waiting for apple to update their opengl before opengl will be able to use more then 16 samples?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6888603d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6888603d](https://forums.unrealengine.com/u/anonymous_user_6888603d)\
**Post date:** [June 1, 2015, 1:39am UTC](https://forums.unrealengine.com/t/opengl-bug-shared-texture-samples-do-not-work-in-opengl/319647/4 "2015-06-01T01:39:30Z")

</div>

The OpenGL 3 (sometimes referred to as Shader Model 4) will remain at 16 samplers for compatibility. The 16 sampler limit in the OpenGL 4 path (on Linux/Windows drivers that support more) is a bug.

---

<div class="post-metadata">

**Author:** ![eWomerOC](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@eWomerOC](https://forums.unrealengine.com/u/eWomerOC)\
**Post date:** [July 11, 2015, 1:05am UTC](https://forums.unrealengine.com/t/opengl-bug-shared-texture-samples-do-not-work-in-opengl/319647/5 "2015-07-11T01:05:33Z")

</div>

I don’t believe this should be marked as resolved.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6888603d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6888603d](https://forums.unrealengine.com/u/anonymous_user_6888603d)\
**Post date:** [July 15, 2015, 9:48am UTC](https://forums.unrealengine.com/t/opengl-bug-shared-texture-samples-do-not-work-in-opengl/319647/6 "2015-07-15T09:48:54Z")

</div>

So that this doesn’t get forgotten it is now filed as: UE-18641

---

<div class="post-metadata">

**Author:** ![eWomerOC](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@eWomerOC](https://forums.unrealengine.com/u/eWomerOC)\
**Post date:** [July 15, 2015, 5:56pm UTC](https://forums.unrealengine.com/t/opengl-bug-shared-texture-samples-do-not-work-in-opengl/319647/7 "2015-07-15T17:56:10Z")

</div>

Thank you.

---

<div class="post-metadata">

**Author:** ![LuisAlaguna](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/luisalaguna/32/570408_2.png) [@LuisAlaguna](https://forums.unrealengine.com/u/LuisAlaguna)\
**Post date:** [September 9, 2015, 3:40pm UTC](https://forums.unrealengine.com/t/opengl-bug-shared-texture-samples-do-not-work-in-opengl/319647/8 "2015-09-09T15:40:52Z")

</div>

Hi, man, this bug have to been with UE-13814?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_0f8db508](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0f8db508](https://forums.unrealengine.com/u/anonymous_user_0f8db508)\
**Post date:** [July 15, 2016, 6:30am UTC](https://forums.unrealengine.com/t/opengl-bug-shared-texture-samples-do-not-work-in-opengl/319647/9 "2016-07-15T06:30:03Z")

</div>

Still not fixed. 😕

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_dccfae57](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_dccfae57](https://forums.unrealengine.com/u/anonymous_user_dccfae57)\
**Post date:** [July 20, 2016, 11:16pm UTC](https://forums.unrealengine.com/t/opengl-bug-shared-texture-samples-do-not-work-in-opengl/319647/10 "2016-07-20T23:16:50Z")

</div>

Waiting on Epic to review pull request:

---

<div class="post-metadata">

**Author:** ![Jason.Catchpole](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jason.Catchpole](https://forums.unrealengine.com/u/Jason.Catchpole)\
**Post date:** [August 9, 2017, 2:01am UTC](https://forums.unrealengine.com/t/opengl-bug-shared-texture-samples-do-not-work-in-opengl/319647/11 "2017-08-09T02:01:37Z")

</div>

I see UE-18641 has been marked as fixed as of August 3rd 2017. Yet the “Fix commit” link points to a commit aimed at issue UE-40488.

I don’t think this has actually been fixed ☹
