Skip to content

Commit 6c258b3

Browse files
HLSL2GLSLConverter: fixed issue with macros in the first line
1 parent 2802d61 commit 6c258b3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Graphics/HLSL2GLSLConverterLib/src/HLSL2GLSLConverterImpl.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019-2024 Diligent Graphics LLC
2+
* Copyright 2019-2025 Diligent Graphics LLC
33
* Copyright 2015-2019 Egor Yusov
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -4641,7 +4641,10 @@ String HLSL2GLSLConverterImpl::ConversionStream::Convert(const Char* EntryPoint,
46414641
auto ReturnTypeToken = Token;
46424642
--ReturnTypeToken;
46434643
if (ReturnTypeToken == m_Tokens.begin())
4644-
break;
4644+
{
4645+
++Token;
4646+
continue;
4647+
}
46454648
auto OpenParenToken = Token;
46464649
++OpenParenToken;
46474650
if (OpenParenToken == m_Tokens.end())

0 commit comments

Comments
 (0)