Skip to content

Commit

Permalink
Merge pull request f4exb#1759 from srcejon/fix_1757
Browse files Browse the repository at this point in the history
Use texture() instead of texture2d() in v330 shaders
  • Loading branch information
f4exb authored Aug 1, 2023
2 parents a8b551c + 5ab82f4 commit 3134ada
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdrgui/gui/tvscreenanalog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ static const char* fragmentShaderSource =
" float tys = (texCoordVar.y + tlhh) * imh;\n"
" float p1y = floor(tys) * tlh - tlhh;\n"
" float p3y = p1y + tlh;\n"
" float tshift1 = texture2D(tex2, vec2(0.0, p1y)).r;\n"
" float tshift3 = texture2D(tex2, vec2(0.0, p3y)).r;\n"
" float tshift1 = texture(tex2, vec2(0.0, p1y)).r;\n"
" float tshift3 = texture(tex2, vec2(0.0, p3y)).r;\n"
" float shift1 = (1.0 - tshift1 * 2.0) * tlw;\n"
" float shift3 = (1.0 - tshift3 * 2.0) * tlw;\n"
" float txs1 = (texCoordVar.x + shift1 + tlhw) * imw;\n"
Expand Down

0 comments on commit 3134ada

Please sign in to comment.