diff options
Diffstat (limited to 'draw/wireframe-mesh.cpp')
| -rw-r--r-- | draw/wireframe-mesh.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/draw/wireframe-mesh.cpp b/draw/wireframe-mesh.cpp index 0b6846d7..b0ba7676 100644 --- a/draw/wireframe-mesh.cpp +++ b/draw/wireframe-mesh.cpp @@ -12,18 +12,17 @@ namespace floormat::wireframe { -GL::RectangleTexture mesh_base::make_constant_texture() +GL::Texture2D mesh_base::make_constant_texture() { const Vector4ub data[] = { {255, 255, 255, 255} }; Trade::ImageData2D img{PixelFormat::RGBA8Unorm, {1, 1}, {}, Containers::arrayView(data, 1), {}, {}}; - GL::RectangleTexture tex; + GL::Texture2D tex; tex.setWrapping(GL::SamplerWrapping::ClampToEdge) .setMagnificationFilter(GL::SamplerFilter::Nearest) .setMinificationFilter(GL::SamplerFilter::Nearest) - .setMaxAnisotropy(1) - .setStorage(GL::textureFormat(img.format()), img.size()) - .setSubImage({}, std::move(img)); + .setStorage(1, GL::textureFormat(img.format()), img.size()) + .setSubImage(0, {}, std::move(img)); return tex; } |
