mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-02 07:58:30 +00:00
Rename property define names to have a type suffix
Renamed the following property define names to have a type suffix to match other property names. SDL_PROP_TEXTURE_OPENGL_TEXTURE_TARGET (number) SDL_PROP_TEXTURE_OPENGLES2_TEXTURE_TARGET (number) SDL_PROP_WINDOW_CREATE_WAYLAND_SCALE_TO_DISPLAY (boolean) SDL_PROP_WINDOW_RENDERER (pointer) SDL_PROP_WINDOW_TEXTUREDATA (pointer)
This commit is contained in:

committed by
Sam Lantinga

parent
cacac6cc34
commit
5af7113842
@@ -531,7 +531,7 @@ static int GL_CreateTexture(SDL_Renderer *renderer, SDL_Texture *texture, SDL_Pr
|
||||
}
|
||||
SDL_PropertiesID props = SDL_GetTextureProperties(texture);
|
||||
SDL_SetNumberProperty(props, SDL_PROP_TEXTURE_OPENGL_TEXTURE_NUMBER, data->texture);
|
||||
SDL_SetNumberProperty(props, SDL_PROP_TEXTURE_OPENGL_TEXTURE_TARGET, (Sint64) textype);
|
||||
SDL_SetNumberProperty(props, SDL_PROP_TEXTURE_OPENGL_TEXTURE_TARGET_NUMBER, (Sint64) textype);
|
||||
SDL_SetFloatProperty(props, SDL_PROP_TEXTURE_OPENGL_TEX_W_FLOAT, data->texw);
|
||||
SDL_SetFloatProperty(props, SDL_PROP_TEXTURE_OPENGL_TEX_H_FLOAT, data->texh);
|
||||
|
||||
|
Reference in New Issue
Block a user