Share CanvasLayer GL dispatch adapters
This commit is contained in:
@@ -326,4 +326,15 @@ inline void unbind_texture_2d(const char* context)
|
||||
LOG("%s texture bind dispatch failed because: %s", context, status.message);
|
||||
}
|
||||
|
||||
inline void bind_texture_cube(std::uint32_t texture_id, const char* context)
|
||||
{
|
||||
const auto status = pp::renderer::gl::bind_opengl_texture_cube(
|
||||
texture_id,
|
||||
pp::renderer::gl::OpenGlTexture2DBindDispatch {
|
||||
.bind_texture = bind_opengl_texture,
|
||||
});
|
||||
if (!status.ok())
|
||||
LOG("%s cube texture bind dispatch failed because: %s", context, status.message);
|
||||
}
|
||||
|
||||
} // namespace pp::legacy::ui_gl
|
||||
|
||||
Reference in New Issue
Block a user