1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 13:17:44 +00:00

LibGL: Remove DeprecatedString usage

We only use it for the extension string, which we now convert into a
`ByteBuffer` object containing the null-terminated bytes :^)
This commit is contained in:
Jelle Raaijmakers 2023-01-30 16:08:50 +01:00 committed by Tim Flynn
parent 6a50fb465c
commit e3f8ac2c05
2 changed files with 23 additions and 15 deletions

View file

@ -1,13 +1,14 @@
/*
* Copyright (c) 2021, Stephan Unverwerth <s.unverwerth@serenityos.org>
* Copyright (c) 2021-2022, Jesse Buhagiar <jooster669@gmail.com>
* Copyright (c) 2022, Jelle Raaijmakers <jelle@gmta.nl>
* Copyright (c) 2022-2023, Jelle Raaijmakers <jelle@gmta.nl>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/ByteBuffer.h>
#include <AK/Debug.h>
#include <AK/HashMap.h>
#include <AK/NonnullOwnPtr.h>
@ -248,7 +249,7 @@ private:
void sync_stencil_configuration();
void sync_clip_planes();
void build_extension_string();
ErrorOr<ByteBuffer> build_extension_string();
template<typename T>
T* store_in_listing(T value)
@ -562,7 +563,7 @@ private:
GLenum m_color_material_mode { GL_AMBIENT_AND_DIFFUSE };
// GL Extension string
DeprecatedString m_extensions;
ByteBuffer m_extensions;
// Buffer objects
NameAllocator m_buffer_name_allocator;