Skip to content

Commit 2726166

Browse files
authored
Update ir_to_legacy.cpp
1 parent 770fe87 commit 2726166

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/compiler/translator/ir/src/output/ir_to_legacy.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1474,6 +1474,9 @@ TIntermTyped *built_in_texture(TCompiler *compiler,
14741474
{
14751475
switch (static_cast<TBasicType>(samplerType))
14761476
{
1477+
case EbtSampler1D:
1478+
builtIn = isProj ? "texture1DProj" : "texture1D";
1479+
break;
14771480
case EbtSampler2D:
14781481
case EbtSamplerExternalOES:
14791482
builtIn = isProj ? "texture2DProj" : "texture2D";
@@ -1528,6 +1531,9 @@ TIntermTyped *built_in_texturelod(TCompiler *compiler,
15281531
{
15291532
switch (static_cast<TBasicType>(samplerType))
15301533
{
1534+
case EbtSampler1D:
1535+
builtIn = isProj ? "texture1DProjLod" : "texture1DLod";
1536+
break;
15311537
case EbtSampler2D:
15321538
if (compiler->getShaderType() == GL_FRAGMENT_SHADER)
15331539
{

0 commit comments

Comments
 (0)