protected Texture(RenderContext renderContext) : base(renderContext) { // ReSharper disable once VirtualMemberCallInConstructor if (!TextureTargetType.HasValue) { throw new InvalidOperationException("Texture subtype does not specify a TextureTarget."); } // ReSharper disable once VirtualMemberCallInConstructor Handle = GLHelper.CreateTexture(TextureTargetType.Value); }