[glutils,nostalgia/core] Move GlslVersion from GlUtils to Nostalgia Core
This commit is contained in:
@@ -15,9 +15,9 @@ void TileSheetGrid::setPixelSizeMod(float sm) noexcept {
|
||||
}
|
||||
|
||||
ox::Error TileSheetGrid::buildShader() noexcept {
|
||||
const auto pixelLineVshad = ox::sfmt(VShad, glutils::GlslVersion);
|
||||
const auto pixelLineFshad = ox::sfmt(FShad, glutils::GlslVersion);
|
||||
const auto pixelLineGshad = ox::sfmt(GShad, glutils::GlslVersion);
|
||||
const auto pixelLineVshad = ox::sfmt(VShad, gl::GlslVersion);
|
||||
const auto pixelLineFshad = ox::sfmt(FShad, gl::GlslVersion);
|
||||
const auto pixelLineGshad = ox::sfmt(GShad, gl::GlslVersion);
|
||||
return glutils::buildShaderProgram(pixelLineVshad, pixelLineFshad, pixelLineGshad).moveTo(&m_shader);
|
||||
}
|
||||
|
||||
|
||||
@@ -17,8 +17,8 @@ void TileSheetPixels::setPixelSizeMod(float sm) noexcept {
|
||||
}
|
||||
|
||||
ox::Error TileSheetPixels::buildShader() noexcept {
|
||||
const auto Vshad = ox::sfmt(VShad, glutils::GlslVersion);
|
||||
const auto Fshad = ox::sfmt(FShad, glutils::GlslVersion);
|
||||
const auto Vshad = ox::sfmt(VShad, gl::GlslVersion);
|
||||
const auto Fshad = ox::sfmt(FShad, gl::GlslVersion);
|
||||
return glutils::buildShaderProgram(Vshad, Fshad).moveTo(&m_shader);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user