mirror of
https://github.com/SFML/SFML.git
synced 2025-02-18 06:18:01 +08:00
Use lowercase literal suffixes
This commit is contained in:
parent
121fa9cf74
commit
f911d01e01
@ -236,7 +236,7 @@ Shader::~Shader()
|
|||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
Shader::Shader(Shader&& source) noexcept :
|
Shader::Shader(Shader&& source) noexcept :
|
||||||
m_shaderProgram(std::exchange(source.m_shaderProgram, 0U)),
|
m_shaderProgram(std::exchange(source.m_shaderProgram, 0u)),
|
||||||
m_currentTexture(std::exchange(source.m_currentTexture, -1)),
|
m_currentTexture(std::exchange(source.m_currentTexture, -1)),
|
||||||
m_textures(std::move(source.m_textures)),
|
m_textures(std::move(source.m_textures)),
|
||||||
m_uniforms(std::move(source.m_uniforms))
|
m_uniforms(std::move(source.m_uniforms))
|
||||||
@ -260,7 +260,7 @@ Shader& Shader::operator=(Shader&& right) noexcept
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Move the contents of right.
|
// Move the contents of right.
|
||||||
m_shaderProgram = std::exchange(right.m_shaderProgram, 0U);
|
m_shaderProgram = std::exchange(right.m_shaderProgram, 0u);
|
||||||
m_currentTexture = std::exchange(right.m_currentTexture, -1);
|
m_currentTexture = std::exchange(right.m_currentTexture, -1);
|
||||||
m_textures = std::move(right.m_textures);
|
m_textures = std::move(right.m_textures);
|
||||||
m_uniforms = std::move(right.m_uniforms);
|
m_uniforms = std::move(right.m_uniforms);
|
||||||
|
@ -209,7 +209,7 @@ std::uint32_t findCrtcForEncoder(const drmModeRes& resources, const drmModeEncod
|
|||||||
{
|
{
|
||||||
// Possible_crtcs is a bitmask as described here:
|
// Possible_crtcs is a bitmask as described here:
|
||||||
// https://dvdhrm.wordpress.com/2012/09/13/linux-drm-mode-setting-api
|
// https://dvdhrm.wordpress.com/2012/09/13/linux-drm-mode-setting-api
|
||||||
const std::uint32_t crtcMask = 1U << i;
|
const std::uint32_t crtcMask = 1u << i;
|
||||||
const std::uint32_t crtcId = resources.crtcs[i];
|
const std::uint32_t crtcId = resources.crtcs[i];
|
||||||
if (encoder.possible_crtcs & crtcMask)
|
if (encoder.possible_crtcs & crtcMask)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user